<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>IO::Socket::SSL - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of IO-Socket-SSL - MetaCPAN" href="https://metacpan.org/dist/IO-Socket-SSL/releases.rss" />
        <link rel="canonical" href="./IO::Socket::SSL.html" />
        <meta name="description" content="Nearly transparent SSL encapsulation for IO::Socket::INET." />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/IO::Socket::SSL" />
<meta name="twitter:title"       content="IO::Socket::SSL" />
<meta name="twitter:description" content="" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./IO::Socket::SSL.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of IO-Socket-SSL was released.">
      <span class="relatize">22 Jan 2024 19:07:08 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/IO-Socket-SSL">IO-Socket-SSL</a>
  </li>
  <li>
    Module version: 2.085
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket/SSL.pm">Source</a>
    (<a href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket/SSL.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g p" href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket/SSL.pod">Pod Source</a>
    (<a href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket/SSL.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket">Browse</a>
    (<a href="https://metacpan.org/dist/IO-Socket-SSL/source/lib/IO/Socket?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/IO-Socket-SSL/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/noxxi/p5-io-socket-ssl">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/IO-Socket-SSL/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/noxxi/p5-io-socket-ssl">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/noxxi/p5-io-socket-ssl/issues">Issues</a>
      (2)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=IO-Socket-SSL+2.085" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Socket-SSL.html?oncpan=1&amp;distmat=1&amp;version=2.085&amp;grade=2" style="color: #090">593</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Socket-SSL.html?oncpan=1&amp;distmat=1&amp;version=2.085&amp;grade=3" style="color: #900">2</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/I/IO-Socket-SSL.html?oncpan=1&amp;distmat=1&amp;version=2.085&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/SULLR/IO-Socket-SSL-2.085">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on IO-Socket-SSL who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/IO-Socket-SSL/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.085.tar.gz">
      Download (<span itemprop="fileSize">259.42KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FSULLR%2FIO-Socket-SSL-2.085%2Flib%2FIO%2FSocket%2FSSL.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/IO-Socket-SSL/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/IO-Socket-SSL/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:IO-Socket-SSL">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="IO-Socket-SSL">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/IO/Socket/SSL.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="SULLR/IO-Socket-SSL-2.085"
>2.085
  (SULLR on 2024-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.084"
>2.084
  (SULLR on 2023-11-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.083"
>2.083
  (SULLR on 2023-05-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.082"
>2.082
  (SULLR on 2023-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.081"
>2.081
  (SULLR on 2023-01-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.080"
>2.080
  (SULLR on 2023-01-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.079"
>2.079
  (SULLR on 2023-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.078"
>2.078
  (SULLR on 2022-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.077"
>2.077
  (SULLR on 2022-11-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.076"
>2.076
  (SULLR on 2022-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.075"
>2.075
  (SULLR on 2022-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.074"
>2.074
  (SULLR on 2022-01-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.073"
>2.073
  (SULLR on 2021-12-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.072"
>2.072
  (SULLR on 2021-08-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.071"
>2.071
  (SULLR on 2021-05-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.070"
>2.070
  (SULLR on 2021-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.069"
>2.069
  (SULLR on 2021-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.068"
>2.068
  (SULLR on 2020-03-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.067"
>2.067
  (SULLR on 2020-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.066"
>2.066
  (SULLR on 2019-03-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.065"
>2.065
  (SULLR on 2019-03-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.064"
>2.064
  (SULLR on 2019-03-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.063"
>2.063
  (SULLR on 2019-03-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.062"
>2.062
  (SULLR on 2019-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.061"
>2.061
  (SULLR on 2019-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.060"
>2.060
  (SULLR on 2018-09-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.059"
>2.059
  (SULLR on 2018-08-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.058"
>2.058
  (SULLR on 2018-07-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.057"
>2.057
  (SULLR on 2018-07-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.056"
>2.056
  (SULLR on 2018-02-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.055"
>2.055
  (SULLR on 2018-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.054"
>2.054
  (SULLR on 2018-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.053"
>2.053
  (SULLR on 2018-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.052"
>2.052
  (SULLR on 2017-10-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.051"
>2.051
  (SULLR on 2017-09-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.050"
>2.050
  (SULLR on 2017-08-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.049"
>2.049
  (SULLR on 2017-06-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.048"
>2.048
  (SULLR on 2017-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.047"
>2.047
  (SULLR on 2017-02-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.046"
>2.046
  (SULLR on 2017-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.045"
>2.045
  (SULLR on 2017-02-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.044"
>2.044
  (SULLR on 2017-01-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.043"
>2.043
  (SULLR on 2017-01-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.042"
>2.042
  (SULLR on 2017-01-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.041"
>2.041
  (SULLR on 2017-01-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.040"
>2.040
  (SULLR on 2016-12-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.039"
>2.039
  (SULLR on 2016-11-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.038"
>2.038
  (SULLR on 2016-09-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.037"
>2.037
  (SULLR on 2016-08-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.036"
>2.036
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.035"
>2.035
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.033"
>2.033
  (SULLR on 2016-07-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.032"
>2.032
  (SULLR on 2016-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.031"
>2.031
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.030"
>2.030
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.029"
>2.029
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.028"
>2.028
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.027"
>2.027
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.026"
>2.026
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.025"
>2.025
  (SULLR on 2016-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.024"
>2.024
  (SULLR on 2016-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.023"
>2.023
  (SULLR on 2016-01-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.022"
>2.022
  (SULLR on 2015-12-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.021"
>2.021
  (SULLR on 2015-12-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.020"
>2.020
  (SULLR on 2015-09-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.019"
>2.019
  (SULLR on 2015-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.018"
>2.018
  (SULLR on 2015-08-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.017"
>2.017
  (SULLR on 2015-08-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_002"
>2.016_002 DEV
  (SULLR on 2015-06-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_001"
>2.016_001 DEV
  (SULLR on 2015-06-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016"
>2.016
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_006"
>2.015_006 DEV
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_005"
>2.015_005 DEV
  (SULLR on 2015-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_004"
>2.015_004 DEV
  (SULLR on 2015-05-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_003"
>2.015_003 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_002"
>2.015_002 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_001"
>2.015_001 DEV
  (SULLR on 2015-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015"
>2.015
  (SULLR on 2015-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.014"
>2.014
  (SULLR on 2015-05-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.013"
>2.013
  (SULLR on 2015-05-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.012"
>2.012
  (SULLR on 2015-02-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.011"
>2.011
  (SULLR on 2015-02-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.010"
>2.010
  (SULLR on 2015-01-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.009"
>2.009
  (SULLR on 2015-01-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.008"
>2.008
  (SULLR on 2014-12-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.007"
>2.007
  (SULLR on 2014-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.006"
>2.006
  (SULLR on 2014-11-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005_1"
>2.005_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005"
>2.005
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004_1"
>2.004_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004"
>2.004
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.003"
>2.003
  (SULLR on 2014-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.002"
>2.002
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.001"
>2.001
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.000"
>2.000
  (SULLR on 2014-10-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.999"
>1.999
  (SULLR on 2014-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.998"
>1.998
  (SULLR on 2014-09-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.997"
>1.997
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.996"
>1.996
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.995"
>1.995
  (SULLR on 2014-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.994"
>1.994
  (SULLR on 2014-06-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.993"
>1.993
  (SULLR on 2014-06-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.992"
>1.992
  (SULLR on 2014-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.991"
>1.991
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.990"
>1.990
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989_1"
>1.989_1 DEV
  (SULLR on 2014-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989"
>1.989
  (SULLR on 2014-05-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.988"
>1.988
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.987"
>1.987
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.986"
>1.986
  (SULLR on 2014-05-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.985"
>1.985
  (SULLR on 2014-05-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.984"
>1.984
  (SULLR on 2014-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.983"
>1.983
  (SULLR on 2014-05-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982_1"
>1.982_1 DEV
  (SULLR on 2014-04-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982"
>1.982
  (SULLR on 2014-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.981"
>1.981
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.980"
>1.980
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.979"
>1.979
  (SULLR on 2014-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.978"
>1.978
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.977"
>1.977
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.976"
>1.976
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.975"
>1.975
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.974"
>1.974
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.973"
>1.973
  (SULLR on 2014-03-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.972"
>1.972
  (SULLR on 2014-03-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.971"
>1.971
  (SULLR on 2014-03-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.970"
>1.970
  (SULLR on 2014-03-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.969"
>1.969
  (SULLR on 2014-03-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.968"
>1.968
  (SULLR on 2014-03-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.967"
>1.967
  (SULLR on 2014-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.966"
>1.966
  (SULLR on 2014-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.965"
>1.965
  (SULLR on 2014-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.964"
>1.964
  (SULLR on 2014-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.963"
>1.963
  (SULLR on 2014-01-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.962"
>1.962
  (SULLR on 2013-11-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.961"
>1.961
  (SULLR on 2013-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.960"
>1.960
  (SULLR on 2013-11-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.959"
>1.959
  (SULLR on 2013-11-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.958"
>1.958
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.957"
>1.957
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.956"
>1.956
  (SULLR on 2013-11-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.955"
>1.955
  (SULLR on 2013-10-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.954"
>1.954
  (SULLR on 2013-09-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.953"
>1.953
  (SULLR on 2013-07-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.952"
>1.952
  (SULLR on 2013-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.951"
>1.951
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.950"
>1.950
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.94"
>1.94
  (SULLR on 2013-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.93"
>1.93
  (SULLR on 2013-05-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.92"
>1.92
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.91"
>1.91
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.90"
>1.90
  (SULLR on 2013-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.89"
>1.89
  (SULLR on 2013-05-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.88"
>1.88
  (SULLR on 2013-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.87"
>1.87
  (SULLR on 2013-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.86"
>1.86
  (SULLR on 2013-04-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.85"
>1.85
  (SULLR on 2013-04-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.84"
>1.84
  (SULLR on 2013-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.831"
>1.831
  (SULLR on 2013-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.83"
>1.83
  (SULLR on 2013-02-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.82"
>1.82
  (SULLR on 2013-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.81"
>1.81
  (SULLR on 2012-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.80"
>1.80
  (SULLR on 2012-11-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.79"
>1.79
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.78"
>1.78
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.77"
>1.77
  (SULLR on 2012-10-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.76"
>1.76
  (SULLR on 2012-06-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.75"
>1.75
  (SULLR on 2012-06-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_2"
>1.74_2 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_1"
>1.74_1 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74"
>1.74
  (SULLR on 2012-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.73"
>1.73
  (SULLR on 2012-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.72"
>1.72
  (SULLR on 2012-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.71"
>1.71
  (SULLR on 2012-05-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.70"
>1.70
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.69"
>1.69
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.68"
>1.68
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.67"
>1.67
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.66"
>1.66
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.65"
>1.65
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.64"
>1.64
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.63"
>1.63
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.62"
>1.62
  (SULLR on 2012-03-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.61"
>1.61
  (SULLR on 2012-03-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.60"
>1.60
  (SULLR on 2012-03-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.59"
>1.59
  (SULLR on 2012-03-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.58"
>1.58
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.57"
>1.57
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.56"
>1.56
  (SULLR on 2012-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.55"
>1.55
  (SULLR on 2012-02-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.54"
>1.54
  (SULLR on 2012-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.53"
>1.53
  (SULLR on 2011-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.52"
>1.52
  (SULLR on 2011-12-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.51"
>1.51
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.50"
>1.50
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.49"
>1.49
  (SULLR on 2011-10-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.48"
>1.48
  (SULLR on 2011-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.47"
>1.47
  (SULLR on 2011-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.46"
>1.46
  (SULLR on 2011-10-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.45"
>1.45
  (SULLR on 2011-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.44"
>1.44
  (SULLR on 2011-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43_1"
>1.43_1 DEV
  (SULLR on 2011-05-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43"
>1.43
  (SULLR on 2011-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.42"
>1.42
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.41"
>1.41
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.40"
>1.40
  (SULLR on 2011-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.39"
>1.39
  (SULLR on 2011-03-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.38"
>1.38
  (SULLR on 2011-01-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="SULLR/IO-Socket-SSL-2.034"
>2.034
  (SULLR on 2016-08-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.37"
>1.37
  (SULLR on 2010-12-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.36"
>1.36
  (SULLR on 2010-12-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.35"
>1.35
  (SULLR on 2010-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.34"
>1.34
  (SULLR on 2010-11-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.33"
>1.33
  (SULLR on 2010-03-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.32"
>1.32
  (SULLR on 2010-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.31"
>1.31
  (SULLR on 2009-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_3"
>1.30_3 DEV
  (SULLR on 2009-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_2"
>1.30_2 DEV
  (SULLR on 2009-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30"
>1.30
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.29"
>1.29
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.28"
>1.28
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.27"
>1.27
  (SULLR on 2009-07-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.26"
>1.26
  (SULLR on 2009-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.25"
>1.25
  (SULLR on 2009-07-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.24"
>1.24
  (SULLR on 2009-04-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.23"
>1.23
  (SULLR on 2009-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.22"
>1.22
  (SULLR on 2009-01-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.21"
>1.21
  (SULLR on 2009-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.20"
>1.20
  (SULLR on 2009-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.19"
>1.19
  (SULLR on 2008-12-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.18"
>1.18
  (SULLR on 2008-11-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.17"
>1.17
  (SULLR on 2008-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_3"
>1.16_3 DEV
  (SULLR on 2008-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_2"
>1.16_2 DEV
  (SULLR on 2008-09-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_1"
>1.16_1 DEV
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16"
>1.16
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.15"
>1.15
  (SULLR on 2008-08-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.14"
>1.14
  (SULLR on 2008-07-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_5"
>1.13_5 DEV
  (SULLR on 2008-03-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_4"
>1.13_4 DEV
  (SULLR on 2008-02-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_3"
>1.13_3 DEV
  (SULLR on 2008-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_2"
>1.13_2 DEV
  (SULLR on 2008-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13"
>1.13
  (SULLR on 2008-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12_1"
>1.12_1 DEV
  (SULLR on 2008-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12"
>1.12
  (SULLR on 2007-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.11"
>1.11
  (SULLR on 2007-10-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.10"
>1.10
  (SULLR on 2007-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.09"
>1.09
  (SULLR on 2007-09-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.08"
>1.08
  (SULLR on 2007-08-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.07"
>1.07
  (SULLR on 2007-06-06)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/SULLR/IO-Socket-SSL-2.085/diff/' + encodeURIComponent(this.value) + '/lib/IO/Socket/SSL.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="SULLR/IO-Socket-SSL-2.085"
>2.085
  (SULLR on 2024-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.084"
>2.084
  (SULLR on 2023-11-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.083"
>2.083
  (SULLR on 2023-05-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.082"
>2.082
  (SULLR on 2023-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.081"
>2.081
  (SULLR on 2023-01-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.080"
>2.080
  (SULLR on 2023-01-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.079"
>2.079
  (SULLR on 2023-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.078"
>2.078
  (SULLR on 2022-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.077"
>2.077
  (SULLR on 2022-11-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.076"
>2.076
  (SULLR on 2022-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.075"
>2.075
  (SULLR on 2022-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.074"
>2.074
  (SULLR on 2022-01-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.073"
>2.073
  (SULLR on 2021-12-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.072"
>2.072
  (SULLR on 2021-08-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.071"
>2.071
  (SULLR on 2021-05-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.070"
>2.070
  (SULLR on 2021-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.069"
>2.069
  (SULLR on 2021-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.068"
>2.068
  (SULLR on 2020-03-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.067"
>2.067
  (SULLR on 2020-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.066"
>2.066
  (SULLR on 2019-03-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.065"
>2.065
  (SULLR on 2019-03-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.064"
>2.064
  (SULLR on 2019-03-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.063"
>2.063
  (SULLR on 2019-03-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.062"
>2.062
  (SULLR on 2019-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.061"
>2.061
  (SULLR on 2019-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.060"
>2.060
  (SULLR on 2018-09-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.059"
>2.059
  (SULLR on 2018-08-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.058"
>2.058
  (SULLR on 2018-07-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.057"
>2.057
  (SULLR on 2018-07-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.056"
>2.056
  (SULLR on 2018-02-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.055"
>2.055
  (SULLR on 2018-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.054"
>2.054
  (SULLR on 2018-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.053"
>2.053
  (SULLR on 2018-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.052"
>2.052
  (SULLR on 2017-10-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.051"
>2.051
  (SULLR on 2017-09-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.050"
>2.050
  (SULLR on 2017-08-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.049"
>2.049
  (SULLR on 2017-06-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.048"
>2.048
  (SULLR on 2017-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.047"
>2.047
  (SULLR on 2017-02-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.046"
>2.046
  (SULLR on 2017-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.045"
>2.045
  (SULLR on 2017-02-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.044"
>2.044
  (SULLR on 2017-01-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.043"
>2.043
  (SULLR on 2017-01-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.042"
>2.042
  (SULLR on 2017-01-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.041"
>2.041
  (SULLR on 2017-01-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.040"
>2.040
  (SULLR on 2016-12-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.039"
>2.039
  (SULLR on 2016-11-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.038"
>2.038
  (SULLR on 2016-09-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.037"
>2.037
  (SULLR on 2016-08-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.036"
>2.036
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.035"
>2.035
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.033"
>2.033
  (SULLR on 2016-07-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.032"
>2.032
  (SULLR on 2016-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.031"
>2.031
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.030"
>2.030
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.029"
>2.029
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.028"
>2.028
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.027"
>2.027
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.026"
>2.026
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.025"
>2.025
  (SULLR on 2016-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.024"
>2.024
  (SULLR on 2016-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.023"
>2.023
  (SULLR on 2016-01-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.022"
>2.022
  (SULLR on 2015-12-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.021"
>2.021
  (SULLR on 2015-12-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.020"
>2.020
  (SULLR on 2015-09-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.019"
>2.019
  (SULLR on 2015-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.018"
>2.018
  (SULLR on 2015-08-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.017"
>2.017
  (SULLR on 2015-08-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_002"
>2.016_002 DEV
  (SULLR on 2015-06-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_001"
>2.016_001 DEV
  (SULLR on 2015-06-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016"
>2.016
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_006"
>2.015_006 DEV
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_005"
>2.015_005 DEV
  (SULLR on 2015-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_004"
>2.015_004 DEV
  (SULLR on 2015-05-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_003"
>2.015_003 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_002"
>2.015_002 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_001"
>2.015_001 DEV
  (SULLR on 2015-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015"
>2.015
  (SULLR on 2015-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.014"
>2.014
  (SULLR on 2015-05-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.013"
>2.013
  (SULLR on 2015-05-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.012"
>2.012
  (SULLR on 2015-02-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.011"
>2.011
  (SULLR on 2015-02-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.010"
>2.010
  (SULLR on 2015-01-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.009"
>2.009
  (SULLR on 2015-01-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.008"
>2.008
  (SULLR on 2014-12-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.007"
>2.007
  (SULLR on 2014-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.006"
>2.006
  (SULLR on 2014-11-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005_1"
>2.005_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005"
>2.005
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004_1"
>2.004_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004"
>2.004
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.003"
>2.003
  (SULLR on 2014-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.002"
>2.002
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.001"
>2.001
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.000"
>2.000
  (SULLR on 2014-10-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.999"
>1.999
  (SULLR on 2014-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.998"
>1.998
  (SULLR on 2014-09-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.997"
>1.997
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.996"
>1.996
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.995"
>1.995
  (SULLR on 2014-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.994"
>1.994
  (SULLR on 2014-06-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.993"
>1.993
  (SULLR on 2014-06-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.992"
>1.992
  (SULLR on 2014-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.991"
>1.991
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.990"
>1.990
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989_1"
>1.989_1 DEV
  (SULLR on 2014-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989"
>1.989
  (SULLR on 2014-05-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.988"
>1.988
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.987"
>1.987
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.986"
>1.986
  (SULLR on 2014-05-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.985"
>1.985
  (SULLR on 2014-05-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.984"
>1.984
  (SULLR on 2014-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.983"
>1.983
  (SULLR on 2014-05-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982_1"
>1.982_1 DEV
  (SULLR on 2014-04-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982"
>1.982
  (SULLR on 2014-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.981"
>1.981
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.980"
>1.980
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.979"
>1.979
  (SULLR on 2014-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.978"
>1.978
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.977"
>1.977
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.976"
>1.976
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.975"
>1.975
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.974"
>1.974
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.973"
>1.973
  (SULLR on 2014-03-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.972"
>1.972
  (SULLR on 2014-03-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.971"
>1.971
  (SULLR on 2014-03-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.970"
>1.970
  (SULLR on 2014-03-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.969"
>1.969
  (SULLR on 2014-03-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.968"
>1.968
  (SULLR on 2014-03-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.967"
>1.967
  (SULLR on 2014-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.966"
>1.966
  (SULLR on 2014-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.965"
>1.965
  (SULLR on 2014-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.964"
>1.964
  (SULLR on 2014-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.963"
>1.963
  (SULLR on 2014-01-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.962"
>1.962
  (SULLR on 2013-11-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.961"
>1.961
  (SULLR on 2013-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.960"
>1.960
  (SULLR on 2013-11-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.959"
>1.959
  (SULLR on 2013-11-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.958"
>1.958
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.957"
>1.957
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.956"
>1.956
  (SULLR on 2013-11-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.955"
>1.955
  (SULLR on 2013-10-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.954"
>1.954
  (SULLR on 2013-09-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.953"
>1.953
  (SULLR on 2013-07-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.952"
>1.952
  (SULLR on 2013-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.951"
>1.951
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.950"
>1.950
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.94"
>1.94
  (SULLR on 2013-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.93"
>1.93
  (SULLR on 2013-05-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.92"
>1.92
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.91"
>1.91
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.90"
>1.90
  (SULLR on 2013-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.89"
>1.89
  (SULLR on 2013-05-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.88"
>1.88
  (SULLR on 2013-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.87"
>1.87
  (SULLR on 2013-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.86"
>1.86
  (SULLR on 2013-04-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.85"
>1.85
  (SULLR on 2013-04-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.84"
>1.84
  (SULLR on 2013-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.831"
>1.831
  (SULLR on 2013-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.83"
>1.83
  (SULLR on 2013-02-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.82"
>1.82
  (SULLR on 2013-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.81"
>1.81
  (SULLR on 2012-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.80"
>1.80
  (SULLR on 2012-11-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.79"
>1.79
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.78"
>1.78
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.77"
>1.77
  (SULLR on 2012-10-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.76"
>1.76
  (SULLR on 2012-06-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.75"
>1.75
  (SULLR on 2012-06-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_2"
>1.74_2 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_1"
>1.74_1 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74"
>1.74
  (SULLR on 2012-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.73"
>1.73
  (SULLR on 2012-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.72"
>1.72
  (SULLR on 2012-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.71"
>1.71
  (SULLR on 2012-05-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.70"
>1.70
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.69"
>1.69
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.68"
>1.68
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.67"
>1.67
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.66"
>1.66
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.65"
>1.65
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.64"
>1.64
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.63"
>1.63
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.62"
>1.62
  (SULLR on 2012-03-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.61"
>1.61
  (SULLR on 2012-03-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.60"
>1.60
  (SULLR on 2012-03-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.59"
>1.59
  (SULLR on 2012-03-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.58"
>1.58
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.57"
>1.57
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.56"
>1.56
  (SULLR on 2012-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.55"
>1.55
  (SULLR on 2012-02-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.54"
>1.54
  (SULLR on 2012-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.53"
>1.53
  (SULLR on 2011-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.52"
>1.52
  (SULLR on 2011-12-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.51"
>1.51
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.50"
>1.50
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.49"
>1.49
  (SULLR on 2011-10-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.48"
>1.48
  (SULLR on 2011-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.47"
>1.47
  (SULLR on 2011-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.46"
>1.46
  (SULLR on 2011-10-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.45"
>1.45
  (SULLR on 2011-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.44"
>1.44
  (SULLR on 2011-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43_1"
>1.43_1 DEV
  (SULLR on 2011-05-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43"
>1.43
  (SULLR on 2011-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.42"
>1.42
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.41"
>1.41
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.40"
>1.40
  (SULLR on 2011-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.39"
>1.39
  (SULLR on 2011-03-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.38"
>1.38
  (SULLR on 2011-01-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="SULLR/IO-Socket-SSL-2.034"
>2.034
  (SULLR on 2016-08-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.37"
>1.37
  (SULLR on 2010-12-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.36"
>1.36
  (SULLR on 2010-12-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.35"
>1.35
  (SULLR on 2010-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.34"
>1.34
  (SULLR on 2010-11-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.33"
>1.33
  (SULLR on 2010-03-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.32"
>1.32
  (SULLR on 2010-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.31"
>1.31
  (SULLR on 2009-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_3"
>1.30_3 DEV
  (SULLR on 2009-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_2"
>1.30_2 DEV
  (SULLR on 2009-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30"
>1.30
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.29"
>1.29
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.28"
>1.28
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.27"
>1.27
  (SULLR on 2009-07-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.26"
>1.26
  (SULLR on 2009-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.25"
>1.25
  (SULLR on 2009-07-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.24"
>1.24
  (SULLR on 2009-04-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.23"
>1.23
  (SULLR on 2009-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.22"
>1.22
  (SULLR on 2009-01-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.21"
>1.21
  (SULLR on 2009-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.20"
>1.20
  (SULLR on 2009-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.19"
>1.19
  (SULLR on 2008-12-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.18"
>1.18
  (SULLR on 2008-11-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.17"
>1.17
  (SULLR on 2008-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_3"
>1.16_3 DEV
  (SULLR on 2008-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_2"
>1.16_2 DEV
  (SULLR on 2008-09-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_1"
>1.16_1 DEV
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16"
>1.16
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.15"
>1.15
  (SULLR on 2008-08-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.14"
>1.14
  (SULLR on 2008-07-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_5"
>1.13_5 DEV
  (SULLR on 2008-03-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_4"
>1.13_4 DEV
  (SULLR on 2008-02-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_3"
>1.13_3 DEV
  (SULLR on 2008-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_2"
>1.13_2 DEV
  (SULLR on 2008-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13"
>1.13
  (SULLR on 2008-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12_1"
>1.12_1 DEV
  (SULLR on 2008-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12"
>1.12
  (SULLR on 2007-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.11"
>1.11
  (SULLR on 2007-10-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.10"
>1.10
  (SULLR on 2007-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.09"
>1.09
  (SULLR on 2007-09-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.08"
>1.08
  (SULLR on 2007-08-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.07"
>1.07
  (SULLR on 2007-06-06)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="./Mozilla::CA.html" title="Mozilla::CA" class="ellipsis">Mozilla::CA</a></li>
  <li><a href="./Net::SSLeay.html" title="Net::SSLeay" class="ellipsis">Net::SSLeay</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/IO::Socket::SSL/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=IO%3A%3ASocket%3A%3ASSL">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=IO-Socket-SSL">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/SULLR/IO-Socket-SSL-2.085/view/lib/IO/Socket/SSL.pm">This version</a>
    </li>
    <li>
      <a href="./IO::Socket::SSL.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/DOLMEN"><img src="https://www.gravatar.com/avatar/70d9b050bfe39350c234d710fadfcd39?d=identicon&amp;s=20" title="DOLMEN" alt="DOLMEN"></a>
<a class="display-all" href="https://metacpan.org/author/PERLANCAR"><img src="https://www.gravatar.com/avatar/c66c9e215cc2342796cd87ca82d044a8?d=identicon&amp;s=20" title="PERLANCAR" alt="PERLANCAR"></a>
<a class="display-all" href="https://metacpan.org/author/SRI"><img src="https://www.gravatar.com/avatar/bfa97d786f12ee3381f97bc909b88e11?d=identicon&amp;s=20" title="SRI" alt="SRI"></a>
<a class="display-all" href="https://metacpan.org/author/PINGAN"><img src="https://www.gravatar.com/avatar/a02222e5e0e4fd24d52fc29a08ac6bcb?d=identicon&amp;s=20" title="PINGAN" alt="PINGAN"></a>
<a class="display-all" href="https://metacpan.org/author/CRUX"><img src="https://www.gravatar.com/avatar/5f448d8ac2c78d30b3567106d269d83d?d=identicon&amp;s=20" title="CRUX" alt="CRUX"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/IO-Socket-SSL/plussers">29 PAUSE users</a>
</div>
<div>
    19 non-PAUSE users
</div>
</div>
    </li>
    <li>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/SULLR" class="author-name">Steffen Ullrich</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/IO/Socket/SSL.pm&#39;" class="">
<option
  selected
  value="SULLR/IO-Socket-SSL-2.085"
>2.085
  (SULLR on 2024-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.084"
>2.084
  (SULLR on 2023-11-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.083"
>2.083
  (SULLR on 2023-05-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.082"
>2.082
  (SULLR on 2023-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.081"
>2.081
  (SULLR on 2023-01-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.080"
>2.080
  (SULLR on 2023-01-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.079"
>2.079
  (SULLR on 2023-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.078"
>2.078
  (SULLR on 2022-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.077"
>2.077
  (SULLR on 2022-11-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.076"
>2.076
  (SULLR on 2022-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.075"
>2.075
  (SULLR on 2022-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.074"
>2.074
  (SULLR on 2022-01-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.073"
>2.073
  (SULLR on 2021-12-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.072"
>2.072
  (SULLR on 2021-08-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.071"
>2.071
  (SULLR on 2021-05-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.070"
>2.070
  (SULLR on 2021-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.069"
>2.069
  (SULLR on 2021-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.068"
>2.068
  (SULLR on 2020-03-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.067"
>2.067
  (SULLR on 2020-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.066"
>2.066
  (SULLR on 2019-03-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.065"
>2.065
  (SULLR on 2019-03-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.064"
>2.064
  (SULLR on 2019-03-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.063"
>2.063
  (SULLR on 2019-03-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.062"
>2.062
  (SULLR on 2019-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.061"
>2.061
  (SULLR on 2019-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.060"
>2.060
  (SULLR on 2018-09-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.059"
>2.059
  (SULLR on 2018-08-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.058"
>2.058
  (SULLR on 2018-07-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.057"
>2.057
  (SULLR on 2018-07-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.056"
>2.056
  (SULLR on 2018-02-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.055"
>2.055
  (SULLR on 2018-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.054"
>2.054
  (SULLR on 2018-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.053"
>2.053
  (SULLR on 2018-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.052"
>2.052
  (SULLR on 2017-10-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.051"
>2.051
  (SULLR on 2017-09-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.050"
>2.050
  (SULLR on 2017-08-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.049"
>2.049
  (SULLR on 2017-06-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.048"
>2.048
  (SULLR on 2017-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.047"
>2.047
  (SULLR on 2017-02-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.046"
>2.046
  (SULLR on 2017-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.045"
>2.045
  (SULLR on 2017-02-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.044"
>2.044
  (SULLR on 2017-01-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.043"
>2.043
  (SULLR on 2017-01-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.042"
>2.042
  (SULLR on 2017-01-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.041"
>2.041
  (SULLR on 2017-01-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.040"
>2.040
  (SULLR on 2016-12-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.039"
>2.039
  (SULLR on 2016-11-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.038"
>2.038
  (SULLR on 2016-09-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.037"
>2.037
  (SULLR on 2016-08-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.036"
>2.036
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.035"
>2.035
  (SULLR on 2016-08-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.033"
>2.033
  (SULLR on 2016-07-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.032"
>2.032
  (SULLR on 2016-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.031"
>2.031
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.030"
>2.030
  (SULLR on 2016-07-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.029"
>2.029
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.028"
>2.028
  (SULLR on 2016-06-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.027"
>2.027
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.026"
>2.026
  (SULLR on 2016-04-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.025"
>2.025
  (SULLR on 2016-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.024"
>2.024
  (SULLR on 2016-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.023"
>2.023
  (SULLR on 2016-01-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.022"
>2.022
  (SULLR on 2015-12-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.021"
>2.021
  (SULLR on 2015-12-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.020"
>2.020
  (SULLR on 2015-09-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.019"
>2.019
  (SULLR on 2015-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.018"
>2.018
  (SULLR on 2015-08-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.017"
>2.017
  (SULLR on 2015-08-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_002"
>2.016_002 DEV
  (SULLR on 2015-06-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016_001"
>2.016_001 DEV
  (SULLR on 2015-06-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.016"
>2.016
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_006"
>2.015_006 DEV
  (SULLR on 2015-06-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_005"
>2.015_005 DEV
  (SULLR on 2015-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_004"
>2.015_004 DEV
  (SULLR on 2015-05-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_003"
>2.015_003 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_002"
>2.015_002 DEV
  (SULLR on 2015-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015_001"
>2.015_001 DEV
  (SULLR on 2015-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.015"
>2.015
  (SULLR on 2015-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.014"
>2.014
  (SULLR on 2015-05-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.013"
>2.013
  (SULLR on 2015-05-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.012"
>2.012
  (SULLR on 2015-02-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.011"
>2.011
  (SULLR on 2015-02-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.010"
>2.010
  (SULLR on 2015-01-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.009"
>2.009
  (SULLR on 2015-01-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.008"
>2.008
  (SULLR on 2014-12-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.007"
>2.007
  (SULLR on 2014-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.006"
>2.006
  (SULLR on 2014-11-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005_1"
>2.005_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.005"
>2.005
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004_1"
>2.004_1 DEV
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.004"
>2.004
  (SULLR on 2014-11-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.003"
>2.003
  (SULLR on 2014-11-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.002"
>2.002
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.001"
>2.001
  (SULLR on 2014-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-2.000"
>2.000
  (SULLR on 2014-10-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.999"
>1.999
  (SULLR on 2014-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.998"
>1.998
  (SULLR on 2014-09-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.997"
>1.997
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.996"
>1.996
  (SULLR on 2014-07-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.995"
>1.995
  (SULLR on 2014-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.994"
>1.994
  (SULLR on 2014-06-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.993"
>1.993
  (SULLR on 2014-06-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.992"
>1.992
  (SULLR on 2014-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.991"
>1.991
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.990"
>1.990
  (SULLR on 2014-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989_1"
>1.989_1 DEV
  (SULLR on 2014-05-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.989"
>1.989
  (SULLR on 2014-05-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.988"
>1.988
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.987"
>1.987
  (SULLR on 2014-05-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.986"
>1.986
  (SULLR on 2014-05-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.985"
>1.985
  (SULLR on 2014-05-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.984"
>1.984
  (SULLR on 2014-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.983"
>1.983
  (SULLR on 2014-05-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982_1"
>1.982_1 DEV
  (SULLR on 2014-04-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.982"
>1.982
  (SULLR on 2014-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.981"
>1.981
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.980"
>1.980
  (SULLR on 2014-04-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.979"
>1.979
  (SULLR on 2014-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.978"
>1.978
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.977"
>1.977
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.976"
>1.976
  (SULLR on 2014-04-04)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.975"
>1.975
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.974"
>1.974
  (SULLR on 2014-04-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.973"
>1.973
  (SULLR on 2014-03-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.972"
>1.972
  (SULLR on 2014-03-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.971"
>1.971
  (SULLR on 2014-03-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.970"
>1.970
  (SULLR on 2014-03-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.969"
>1.969
  (SULLR on 2014-03-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.968"
>1.968
  (SULLR on 2014-03-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.967"
>1.967
  (SULLR on 2014-02-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.966"
>1.966
  (SULLR on 2014-01-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.965"
>1.965
  (SULLR on 2014-01-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.964"
>1.964
  (SULLR on 2014-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.963"
>1.963
  (SULLR on 2014-01-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.962"
>1.962
  (SULLR on 2013-11-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.961"
>1.961
  (SULLR on 2013-11-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.960"
>1.960
  (SULLR on 2013-11-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.959"
>1.959
  (SULLR on 2013-11-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.958"
>1.958
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.957"
>1.957
  (SULLR on 2013-11-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.956"
>1.956
  (SULLR on 2013-11-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.955"
>1.955
  (SULLR on 2013-10-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.954"
>1.954
  (SULLR on 2013-09-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.953"
>1.953
  (SULLR on 2013-07-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.952"
>1.952
  (SULLR on 2013-07-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.951"
>1.951
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.950"
>1.950
  (SULLR on 2013-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.94"
>1.94
  (SULLR on 2013-06-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.93"
>1.93
  (SULLR on 2013-05-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.92"
>1.92
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.91"
>1.91
  (SULLR on 2013-05-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.90"
>1.90
  (SULLR on 2013-05-29)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.89"
>1.89
  (SULLR on 2013-05-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.88"
>1.88
  (SULLR on 2013-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.87"
>1.87
  (SULLR on 2013-04-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.86"
>1.86
  (SULLR on 2013-04-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.85"
>1.85
  (SULLR on 2013-04-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.84"
>1.84
  (SULLR on 2013-02-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.831"
>1.831
  (SULLR on 2013-02-14)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.83"
>1.83
  (SULLR on 2013-02-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.82"
>1.82
  (SULLR on 2013-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.81"
>1.81
  (SULLR on 2012-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.80"
>1.80
  (SULLR on 2012-11-30)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.79"
>1.79
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.78"
>1.78
  (SULLR on 2012-11-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.77"
>1.77
  (SULLR on 2012-10-05)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.76"
>1.76
  (SULLR on 2012-06-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.75"
>1.75
  (SULLR on 2012-06-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_2"
>1.74_2 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74_1"
>1.74_1 DEV
  (SULLR on 2012-06-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.74"
>1.74
  (SULLR on 2012-05-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.73"
>1.73
  (SULLR on 2012-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.72"
>1.72
  (SULLR on 2012-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.71"
>1.71
  (SULLR on 2012-05-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.70"
>1.70
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.69"
>1.69
  (SULLR on 2012-05-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.68"
>1.68
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.67"
>1.67
  (SULLR on 2012-05-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.66"
>1.66
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.65"
>1.65
  (SULLR on 2012-04-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.64"
>1.64
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.63"
>1.63
  (SULLR on 2012-04-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.62"
>1.62
  (SULLR on 2012-03-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.61"
>1.61
  (SULLR on 2012-03-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.60"
>1.60
  (SULLR on 2012-03-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.59"
>1.59
  (SULLR on 2012-03-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.58"
>1.58
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.57"
>1.57
  (SULLR on 2012-02-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.56"
>1.56
  (SULLR on 2012-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.55"
>1.55
  (SULLR on 2012-02-20)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.54"
>1.54
  (SULLR on 2012-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.53"
>1.53
  (SULLR on 2011-12-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.52"
>1.52
  (SULLR on 2011-12-07)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.51"
>1.51
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.50"
>1.50
  (SULLR on 2011-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.49"
>1.49
  (SULLR on 2011-10-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.48"
>1.48
  (SULLR on 2011-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.47"
>1.47
  (SULLR on 2011-10-21)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.46"
>1.46
  (SULLR on 2011-10-18)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.45"
>1.45
  (SULLR on 2011-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.44"
>1.44
  (SULLR on 2011-05-27)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43_1"
>1.43_1 DEV
  (SULLR on 2011-05-12)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.43"
>1.43
  (SULLR on 2011-05-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.42"
>1.42
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.41"
>1.41
  (SULLR on 2011-05-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.40"
>1.40
  (SULLR on 2011-05-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.39"
>1.39
  (SULLR on 2011-03-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.38"
>1.38
  (SULLR on 2011-01-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="SULLR/IO-Socket-SSL-2.034"
>2.034
  (SULLR on 2016-08-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.37"
>1.37
  (SULLR on 2010-12-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.36"
>1.36
  (SULLR on 2010-12-08)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.35"
>1.35
  (SULLR on 2010-12-06)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.34"
>1.34
  (SULLR on 2010-11-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.33"
>1.33
  (SULLR on 2010-03-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.32"
>1.32
  (SULLR on 2010-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.31"
>1.31
  (SULLR on 2009-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_3"
>1.30_3 DEV
  (SULLR on 2009-09-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30_2"
>1.30_2 DEV
  (SULLR on 2009-09-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.30"
>1.30
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.29"
>1.29
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.28"
>1.28
  (SULLR on 2009-08-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.27"
>1.27
  (SULLR on 2009-07-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.26"
>1.26
  (SULLR on 2009-07-03)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.25"
>1.25
  (SULLR on 2009-07-02)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.24"
>1.24
  (SULLR on 2009-04-01)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.23"
>1.23
  (SULLR on 2009-02-23)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.22"
>1.22
  (SULLR on 2009-01-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.21"
>1.21
  (SULLR on 2009-01-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.20"
>1.20
  (SULLR on 2009-01-15)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.19"
>1.19
  (SULLR on 2008-12-31)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.18"
>1.18
  (SULLR on 2008-11-17)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.17"
>1.17
  (SULLR on 2008-10-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_3"
>1.16_3 DEV
  (SULLR on 2008-09-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_2"
>1.16_2 DEV
  (SULLR on 2008-09-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16_1"
>1.16_1 DEV
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.16"
>1.16
  (SULLR on 2008-09-19)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.15"
>1.15
  (SULLR on 2008-08-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.14"
>1.14
  (SULLR on 2008-07-16)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_5"
>1.13_5 DEV
  (SULLR on 2008-03-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_4"
>1.13_4 DEV
  (SULLR on 2008-02-25)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_3"
>1.13_3 DEV
  (SULLR on 2008-02-24)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13_2"
>1.13_2 DEV
  (SULLR on 2008-02-22)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.13"
>1.13
  (SULLR on 2008-01-28)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12_1"
>1.12_1 DEV
  (SULLR on 2008-01-11)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.12"
>1.12
  (SULLR on 2007-10-26)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.11"
>1.11
  (SULLR on 2007-10-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.10"
>1.10
  (SULLR on 2007-10-09)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.09"
>1.09
  (SULLR on 2007-09-13)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.08"
>1.08
  (SULLR on 2007-08-10)</option>
<option
  
  value="SULLR/IO-Socket-SSL-1.07"
>1.07
  (SULLR on 2007-06-06)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/IO-Socket-SSL">IO-Socket-SSL-2.085</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage four &#10;
          • 342 direct dependents &#10;          • 2021 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="IO-Socket-SSL-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="IO-Socket-SSL-2.085">
    <input type="hidden" name="author" value="SULLR">
    <input type="hidden" name="distribution" value="IO-Socket-SSL">
    <button type="submit" class="favorite highlight"><span>48</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./IO::Socket::SSL.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>48</span> ++</a>
</div>
   / <span>IO::Socket::SSL</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./IO::Socket::SSL.html#NAME">NAME</a></li>
  <li><a href="./IO::Socket::SSL.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./IO::Socket::SSL.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./IO::Socket::SSL.html#Essential-Information-About-SSL/TLS">Essential Information About SSL/TLS</a></li>
  <li><a href="./IO::Socket::SSL.html#Basic-SSL-Client">Basic SSL Client</a></li>
  <li><a href="./IO::Socket::SSL.html#Basic-SSL-Server">Basic SSL Server</a></li>
  <li><a href="./IO::Socket::SSL.html#Common-Usage-Errors">Common Usage Errors</a></li>
  <li><a href="./IO::Socket::SSL.html#Common-Problems-with-SSL">Common Problems with SSL</a></li>
  <li><a href="./IO::Socket::SSL.html#Using-Non-Blocking-Sockets">Using Non-Blocking Sockets</a></li>
  <li><a href="./IO::Socket::SSL.html#Advanced-Usage">Advanced Usage</a>
    <ul>
      <li><a href="./IO::Socket::SSL.html#SNI-Support">SNI Support</a></li>
      <li><a href="./IO::Socket::SSL.html#Talk-Plain-and-SSL-With-The-Same-Socket">Talk Plain and SSL With The Same Socket</a></li>
    </ul>
  </li>
  <li><a href="./IO::Socket::SSL.html#Integration-Into-Own-Modules">Integration Into Own Modules</a></li>
  <li><a href="./IO::Socket::SSL.html#Description-Of-Methods">Description Of Methods</a></li>
  <li><a href="./IO::Socket::SSL.html#DEPRECATIONS">DEPRECATIONS</a></li>
  <li><a href="./IO::Socket::SSL.html#EXAMPLES">EXAMPLES</a></li>
  <li><a href="./IO::Socket::SSL.html#BUGS">BUGS</a></li>
  <li><a href="./IO::Socket::SSL.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./IO::Socket::SSL.html#THANKS">THANKS</a></li>
  <li><a href="./IO::Socket::SSL.html#AUTHORS">AUTHORS</a></li>
  <li><a href="./IO::Socket::SSL.html#COPYRIGHT">COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>IO::Socket::SSL - SSL sockets with IO::Socket interface</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    use strict;
    use IO::Socket::SSL;

    # simple client
    my $cl = IO::Socket::SSL-&gt;new(&#39;www.google.com:443&#39;);
    print $cl &quot;GET / HTTP/1.0\r\n\r\n&quot;;
    print &lt;$cl&gt;;

    # simple server
    my $srv = IO::Socket::SSL-&gt;new(
        LocalAddr =&gt; &#39;0.0.0.0:1234&#39;,
        Listen =&gt; 10,
        SSL_cert_file =&gt; &#39;server-cert.pem&#39;,
        SSL_key_file =&gt; &#39;server-key.pem&#39;,
    );
    $srv-&gt;accept;</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>IO::Socket::SSL makes using SSL/TLS much easier by wrapping the necessary functionality into the familiar <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> interface and providing secure defaults whenever possible. This way, existing applications can be made SSL-aware without much effort, at least if you do blocking I/O and don&#39;t use select or poll.</p>

<p>But, under the hood, SSL is a complex beast. So there are lots of methods to make it do what you need if the default behavior is not adequate. Because it is easy to inadvertently introduce critical security bugs or just hard to debug problems, I would recommend studying the following documentation carefully.</p>

<p>The documentation consists of the following parts:</p>

<ul>

<li><p><a href="./IO::Socket::SSL.html#Essential-Information-About-SSL/TLS">&quot;Essential Information About SSL/TLS&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Basic-SSL-Client">&quot;Basic SSL Client&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Basic-SSL-Server">&quot;Basic SSL Server&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Common-Usage-Errors">&quot;Common Usage Errors&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Common-Problems-with-SSL">&quot;Common Problems with SSL&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Using-Non-Blocking-Sockets">&quot;Using Non-Blocking Sockets&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Advanced-Usage">&quot;Advanced Usage&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Integration-Into-Own-Modules">&quot;Integration Into Own Modules&quot;</a></p>

</li>
<li><p><a href="./IO::Socket::SSL.html#Description-Of-Methods">&quot;Description Of Methods&quot;</a></p>

</li>
</ul>

<p>Additional documentation can be found in</p>

<ul>

<li><p><a href="https://metacpan.org/pod/IO::Socket::SSL::Intercept">IO::Socket::SSL::Intercept</a> - Doing Man-In-The-Middle with SSL</p>

</li>
<li><p><a href="https://metacpan.org/pod/IO::Socket::SSL::Utils">IO::Socket::SSL::Utils</a> - Useful functions for certificates etc</p>

</li>
</ul>

<h1 id="Essential-Information-About-SSL/TLS"><a id="Essential"></a><a id="Essential-Information-About-SSL-TLS"></a>Essential Information About SSL/TLS</h1>

<p>SSL (Secure Socket Layer) or its successor TLS (Transport Layer Security) are protocols to facilitate end-to-end security. These protocols are used when accessing web sites (https), delivering or retrieving email, and in lots of other use cases. In the following documentation we will refer to both SSL and TLS as simply &#39;SSL&#39;.</p>

<p>SSL enables end-to-end security by providing two essential functions:</p>

<dl>

<dt id="Encryption">Encryption</dt>
<dd>

<p>This part encrypts the data for transit between the communicating parties, so that nobody in between can read them. It also provides tamper resistance so that nobody in between can manipulate the data.</p>

</dd>
<dt id="Identification">Identification</dt>
<dd>

<p>This part makes sure that you talk to the right peer. If the identification is done incorrectly it is easy to mount man-in-the-middle attacks, e.g. if Alice wants to talk to Bob it would be possible for Mallory to put itself in the middle, so that Alice talks to Mallory and Mallory to Bob. All the data would still be encrypted, but not end-to-end between Alice and Bob, but only between Alice and Mallory and then between Mallory and Bob. Thus Mallory would be able to read and modify all traffic between Alice and Bob.</p>

</dd>
</dl>

<p>Identification is the part which is the hardest to understand and the easiest to get wrong.</p>

<p>With SSL, the Identification is usually done with <b>certificates</b> inside a <b>PKI</b> (Public Key Infrastructure). These Certificates are comparable to an identity card, which contains information about the owner of the card. The card then is somehow <b>signed</b> by the <b>issuer</b> of the card, the <b>CA</b> (Certificate Agency).</p>

<p>To verify the identity of the peer the following must be done inside SSL:</p>

<ul>

<li><p>Get the certificate from the peer. If the peer does not present a certificate we cannot verify it.</p>

</li>
<li><p>Check if we trust the certificate, e.g. make sure it&#39;s not a forgery.</p>

<p>We believe that a certificate is not a fake if we either know the certificate already or if we <b>trust</b> the issuer (the CA) and can verify the issuers signature on the certificate. In reality there is often a hierarchy of certificate agencies and we only directly trust the root of this hierarchy. In this case the peer not only sends his own certificate, but also all <b>intermediate certificates</b>. Verification will be done by building a <b>trust path</b> from the trusted root up to the peers certificate and checking in each step if the we can verify the issuer&#39;s signature.</p>

<p>This step often causes problems because the client does not know the necessary trusted root certificates. These are usually stored in a system dependent CA store, but often the browsers have their own CA store.</p>

</li>
<li><p>Check if the certificate is still valid. Each certificate has a lifetime and should not be used after that time because it might be compromised or the underlying cryptography got broken in the mean time.</p>

</li>
<li><p>Check if the subject of the certificate matches the peer. This is like comparing the picture on the identity card against the person representing the identity card.</p>

<p>When connecting to a server this is usually done by comparing the hostname used for connecting against the names represented in the certificate. A certificate might contain multiple names or wildcards, so that it can be used for multiple hosts (e.g. *.example.com and *.example.org).</p>

<p>Although nobody sane would accept an identity card where the picture does not match the person we see, it is a common implementation error with SSL to omit this check or get it wrong.</p>

</li>
<li><p>Check if the certificate was revoked by the issuer. This might be the case if the certificate was compromised somehow and now somebody else might use it to claim the wrong identity. Such revocations happened a lot after the heartbleed attack.</p>

<p>For SSL there are two ways to verify a revocation, CRL and OCSP. With CRLs (Certificate Revocation List) the CA provides a list of serial numbers for revoked certificates. The client somehow has to download the list (which can be huge) and keep it up to date. With OCSP (Online Certificate Status Protocol) the client can check a single certificate directly by asking the issuer.</p>

<p>Revocation is the hardest part of the verification and none of today&#39;s browsers get it fully correct. But, they are still better than most other implementations which don&#39;t implement revocation checks or leave the hard parts to the developer.</p>

</li>
</ul>

<p>When accessing a web site with SSL or delivering mail in a secure way the identity is usually only checked one way, e.g. the client wants to make sure it talks to the right server, but the server usually does not care which client it talks to. But, sometimes the server wants to identify the client too and will request a certificate from the client which the server must verify in a similar way.</p>

<h1 id="Basic-SSL-Client"><a id="Basic"></a>Basic SSL Client</h1>

<p>A basic SSL client is simple:</p>

<pre><code>    my $client = IO::Socket::SSL-&gt;new(&#39;www.example.com:443&#39;)
        or die &quot;error=$!, ssl_error=$SSL_ERROR&quot;;</code></pre>

<p>This will take the OpenSSL default CA store as the store for the trusted CA. This usually works on UNIX systems. If there are no certificates in the store it will try use <a href="./Mozilla::CA.html">Mozilla::CA</a> which provides the default CAs of Firefox.</p>

<p>In the default settings, <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> will use a safer cipher set and SSL version, do a proper hostname check against the certificate, and use SNI (server name indication) to send the hostname inside the SSL handshake. This is necessary to work with servers which have different certificates behind the same IP address. It will also check the revocation of the certificate with OCSP, but currently only if the server provides OCSP stapling (for deeper checks see <code>ocsp_resolver</code> method).</p>

<p>Lots of options can be used to change ciphers, SSL version, location of CA and much more. See documentation of methods for details.</p>

<p>With protocols like SMTP it is necessary to upgrade an existing socket to SSL. This can be done like this:</p>

<pre><code>    my $client = IO::Socket::INET-&gt;new(&#39;mx.example.com:25&#39;) or die $!;
    # .. read greeting from server
    # .. send EHLO and read response
    # .. send STARTTLS command and read response
    # .. if response was successful we can upgrade the socket to SSL now:
    IO::Socket::SSL-&gt;start_SSL($client,
        # explicitly set hostname we should use for SNI
        SSL_hostname =&gt; &#39;mx.example.com&#39;
    ) or die $SSL_ERROR;</code></pre>

<p>A more complete example for a simple HTTP client:</p>

<pre><code>    my $client = IO::Socket::SSL-&gt;new(
        # where to connect
        PeerHost =&gt; &quot;www.example.com&quot;,
        PeerPort =&gt; &quot;https&quot;,

        # certificate verification - VERIFY_PEER is default
        SSL_verify_mode =&gt; SSL_VERIFY_PEER,

        # location of CA store
        # need only be given if default store should not be used
        SSL_ca_path =&gt; &#39;/etc/ssl/certs&#39;, # typical CA path on Linux
        SSL_ca_file =&gt; &#39;/etc/ssl/cert.pem&#39;, # typical CA file on BSD

        # or just use default path on system:
        IO::Socket::SSL::default_ca(), # either explicitly
        # or implicitly by not giving SSL_ca_*

        # easy hostname verification
        # It will use PeerHost as default name a verification
        # scheme as default, which is safe enough for most purposes.
        SSL_verifycn_name =&gt; &#39;foo.bar&#39;,
        SSL_verifycn_scheme =&gt; &#39;http&#39;,

        # SNI support - defaults to PeerHost
        SSL_hostname =&gt; &#39;foo.bar&#39;,

    ) or die &quot;failed connect or ssl handshake: $!,$SSL_ERROR&quot;;

    # send and receive over SSL connection
    print $client &quot;GET / HTTP/1.0\r\n\r\n&quot;;
    print &lt;$client&gt;;</code></pre>

<p>And to do revocation checks with OCSP (only available with OpenSSL 1.0.0 or higher and <a href="./Net::SSLeay.html">Net::SSLeay</a> 1.59 or higher):</p>

<pre><code>    # default will try OCSP stapling and check only leaf certificate
    my $client = IO::Socket::SSL-&gt;new($dst);

    # better yet: require checking of full chain
    my $client = IO::Socket::SSL-&gt;new(
        PeerAddr =&gt; $dst,
        SSL_ocsp_mode =&gt; SSL_OCSP_FULL_CHAIN,
    );

    # even better: make OCSP errors fatal
    # (this will probably fail with lots of sites because of bad OCSP setups)
    # also use common OCSP response cache
    my $ocsp_cache = IO::Socket::SSL::OCSP_Cache-&gt;new;
    my $client = IO::Socket::SSL-&gt;new(
        PeerAddr =&gt; $dst,
        SSL_ocsp_mode =&gt; SSL_OCSP_FULL_CHAIN|SSL_OCSP_FAIL_HARD,
        SSL_ocsp_cache =&gt; $ocsp_cache,
    );

    # disable OCSP stapling in case server has problems with it
    my $client = IO::Socket::SSL-&gt;new(
        PeerAddr =&gt; $dst,
        SSL_ocsp_mode =&gt; SSL_OCSP_NO_STAPLE,
    );

    # check any certificates which are not yet checked by OCSP stapling or
    # where we have already cached results. For your own resolving combine
    # $ocsp-&gt;requests with $ocsp-&gt;add_response(uri,response).
    my $ocsp = $client-&gt;ocsp_resolver();
    my $errors = $ocsp-&gt;resolve_blocking();
    if ($errors) {
        warn &quot;OCSP verification failed: $errors&quot;;
        close($client);
    }</code></pre>

<h1 id="Basic-SSL-Server"><a id="Basic1"></a>Basic SSL Server</h1>

<p>A basic SSL server looks similar to other <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> servers, only that it also contains settings for certificate and key:</p>

<pre><code>    # simple server
    my $server = IO::Socket::SSL-&gt;new(
        # where to listen
        LocalAddr =&gt; &#39;127.0.0.1&#39;,
        LocalPort =&gt; 8080,
        Listen =&gt; 10,

        # which certificate to offer
        # with SNI support there can be different certificates per hostname
        SSL_cert_file =&gt; &#39;cert.pem&#39;,
        SSL_key_file =&gt; &#39;key.pem&#39;,
    ) or die &quot;failed to listen: $!&quot;;

    # accept client
    my $client = $server-&gt;accept or die
        &quot;failed to accept or ssl handshake: $!,$SSL_ERROR&quot;;</code></pre>

<p>This will automatically use a secure set of ciphers and SSL version and also supports Forward Secrecy with (Elliptic-Curve) Diffie-Hellmann Key Exchange.</p>

<p>If you are doing a forking or threading server, we recommend that you do the SSL handshake inside the new process/thread so that the master is free for new connections. We recommend this because a client with improper or slow SSL handshake could make the server block in the handshake which would be bad to do on the listening socket:</p>

<pre><code>    # inet server
    my $server = IO::Socket::INET-&gt;new(
        # where to listen
        LocalAddr =&gt; &#39;127.0.0.1&#39;,
        LocalPort =&gt; 8080,
        Listen =&gt; 10,
    );

    # accept client
    my $client = $server-&gt;accept or die;

    # SSL upgrade client (in new process/thread)
    IO::Socket::SSL-&gt;start_SSL($client,
        SSL_server =&gt; 1,
        SSL_cert_file =&gt; &#39;cert.pem&#39;,
        SSL_key_file =&gt; &#39;key.pem&#39;,
    ) or die &quot;failed to ssl handshake: $SSL_ERROR&quot;;</code></pre>

<p>Like with normal sockets, neither forking nor threading servers scale well. It is recommended to use non-blocking sockets instead, see <a href="./IO::Socket::SSL.html#Using-Non-Blocking-Sockets">&quot;Using Non-Blocking Sockets&quot;</a></p>

<h1 id="Common-Usage-Errors"><a id="Common"></a>Common Usage Errors</h1>

<p>This is a list of typical errors seen with the use of <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>:</p>

<ul>

<li><p>Disabling verification with <code>SSL_verify_mode</code>.</p>

<p>As described in <a href="./IO::Socket::SSL.html#Essential-Information-About-SSL/TLS">&quot;Essential Information About SSL/TLS&quot;</a>, a proper identification of the peer is essential and failing to verify makes Man-In-The-Middle attacks possible.</p>

<p>Nevertheless, lots of scripts and even public modules or applications disable verification, because it is probably the easiest way to make the thing work and usually nobody notices any security problems anyway.</p>

<p>If the verification does not succeed with the default settings, one can do the following:</p>

<ul>

<li><p>Make sure the needed CAs are in the store, maybe use <code>SSL_ca_file</code> or <code>SSL_ca_path</code> to specify a different CA store.</p>

</li>
<li><p>If the validation fails because the certificate is self-signed and that&#39;s what you expect, you can use the <code>SSL_fingerprint</code> option to accept specific leaf certificates by their certificate or pubkey fingerprint.</p>

</li>
<li><p>If the validation failed because the hostname does not match and you cannot access the host with the name given in the certificate, you can use <code>SSL_verifycn_name</code> to specify the hostname you expect in the certificate.</p>

</li>
</ul>

<p>A common error pattern is also to disable verification if they found no CA store (different modules look at different &quot;default&quot; places). Because <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> is now able to provide a usable CA store on most platforms (UNIX, Mac OSX and Windows) it is better to use the defaults provided by <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>. If necessary these can be checked with the <code>default_ca</code> method.</p>

</li>
<li><p>Polling of SSL sockets (e.g. select, poll and other event loops).</p>

<p>If you sysread one byte on a normal socket it will result in a syscall to read one byte. Thus, if more than one byte is available on the socket it will be kept in the network stack of your OS and the next select or poll call will return the socket as readable. But, with SSL you don&#39;t deliver single bytes. Multiple data bytes are packaged and encrypted together in an SSL frame. Decryption can only be done on the whole frame, so a sysread for one byte actually reads the complete SSL frame from the socket, decrypts it and returns the first decrypted byte. Further sysreads will return more bytes from the same frame until all bytes are returned and the next SSL frame will be read from the socket.</p>

<p>Thus, in order to decide if you can read more data (e.g. if sysread will block) you must check if there are still data in the current SSL frame by calling <code>pending</code> and if there are no data pending you might check the underlying socket with select or poll. Another way might be if you try to sysread at least 16kByte all the time. 16kByte is the maximum size of an SSL frame and because sysread returns data from only a single SSL frame you can guarantee that there are no pending data.</p>

<p>Additionally, contrary to plain sockets the data delivered on the socket are not necessarily application payload. It might be a TLS handshake, it might just be the beginning of a TLS record or it might be TLS session tickets which are send after the TLS handshake in TLS 1.3. In such situations select will return that data are available for read since it only looks at the plain socket. A sysread on the IO::Socket::SSL socket will not return any data though since it is an abstraction which only returns application data. This causes the sysread to hang in case the socket was blocking or to return an error with EAGAIN on non-blocking sockets. Applications using select or similar should therefore set the socket to non-blocking and also expect that the sysread might temporarily fail with EAGAIN.</p>

<p>See also <a href="./IO::Socket::SSL.html#Using-Non-Blocking-Sockets">&quot;Using Non-Blocking Sockets&quot;</a>.</p>

</li>
<li><p>Expecting exactly the same behavior as plain sockets.</p>

<p>IO::Socket::SSL tries to emulate the usual socket behavior as good as possible, but full emulation can not be done. Specifically a read on the SSL socket might also result in a write on the TCP socket or a write on the SSL socket might result in a read on the TCP socket. Also <code>accept</code> and <b>close</b> on the SSL socket will result in writing and reading data to the TCP socket too.</p>

<p>Especially the hidden writes might result in a connection reset if the underlying TCP socket is already closed by the peer. Unless signal PIPE is explicitly handled by the application this will usually result in the application crashing. It is thus recommended to explicitly IGNORE signal PIPE so that the errors get propagated as EPIPE instead of causing a crash of the application.</p>

</li>
<li><p>Set &#39;SSL_version&#39; or &#39;SSL_cipher_list&#39; to a &quot;better&quot; value.</p>

<p><a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> tries to set these values to reasonable, secure values which are compatible with the rest of the world. But, there are some scripts or modules out there which tried to be smart and get more secure or compatible settings. Unfortunately, they did this years ago and never updated these values, so they are still forced to do only &#39;TLSv1&#39; (instead of also using TLSv12 or TLSv11). Or they set &#39;HIGH&#39; as the cipher list and thought they were secure, but did not notice that &#39;HIGH&#39; includes anonymous ciphers, e.g. without identification of the peer.</p>

<p>So it is recommended to leave the settings at the secure defaults which <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> sets and which get updated from time to time to better fit the real world.</p>

</li>
<li><p>Make SSL settings inaccessible by the user, together with bad builtin settings.</p>

<p>Some modules use <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>, but don&#39;t make the SSL settings available to the user. This is often combined with bad builtin settings or defaults (like switching verification off).</p>

<p>Thus the user needs to hack around these restrictions by using <code>set_args_filter_hack</code> or similar.</p>

</li>
<li><p>Use of constants as strings.</p>

<p>Constants like <code>SSL_VERIFY_PEER</code> or <code>SSL_WANT_READ</code> should be used as constants and not be put inside quotes, because they represent numerical values.</p>

</li>
<li><p>Forking and handling the socket in parent and child.</p>

<p>A <b>fork</b> of the process will duplicate the internal user space SSL state of the socket. If both master and child interact with the socket by using their own SSL state strange error messages will happen. Such interaction includes explicit or implicit <b>close</b> of the SSL socket. To avoid this the socket should be explicitly closed with <b>SSL_no_shutdown</b>.</p>

</li>
<li><p>Forking and executing a new process.</p>

<p>Since the SSL state is stored in user space it will be duplicated by a <b>fork</b> but it will be lost when doing <b>exec</b>. This means it is not possible to simply redirect stdin and stdout for the new process to the SSL socket by duplicating the relevant file handles. Instead explicitly exchanging plain data between child-process and SSL socket are needed.</p>

</li>
</ul>

<h1 id="Common-Problems-with-SSL"><a id="Common1"></a>Common Problems with SSL</h1>

<p>SSL is a complex protocol with multiple implementations and each of these has their own quirks. While most of these implementations work together, it often gets problematic with older versions, minimal versions in load balancers, or plain wrong setups.</p>

<p>Unfortunately these problems are hard to debug. Helpful for debugging are a knowledge of SSL internals, wireshark and the use of the debug settings of <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> and <a href="./Net::SSLeay.html">Net::SSLeay</a>, which can both be set with <code>$IO::Socket::SSL::DEBUG</code>. The following debugs levels are defined, but used not in any consistent way:</p>

<ul>

<li><p>0 - No debugging (default).</p>

</li>
<li><p>1 - Print out errors from <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> and ciphers from <a href="./Net::SSLeay.html">Net::SSLeay</a>.</p>

</li>
<li><p>2 - Print also information about call flow from <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>, progress information from <a href="./Net::SSLeay.html">Net::SSLeay</a> and state information from OpenSSL.</p>

</li>
<li><p>3 - Print also some data dumps from <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> and from <a href="./Net::SSLeay.html">Net::SSLeay</a>.</p>

</li>
</ul>

<p>Also, <code>analyze-ssl.pl</code> from the ssl-tools repository at <a href="https://github.com/noxxi/p5-ssl-tools">https://github.com/noxxi/p5-ssl-tools</a> might be a helpful tool when debugging SSL problems, as do the <code>openssl</code> command line tool and a check with a different SSL implementation (e.g. a web browser).</p>

<p>The following problems are not uncommon:</p>

<ul>

<li><p>Bad server setup: missing intermediate certificates.</p>

<p>It is a regular problem that administrators fail to include all necessary certificates into their server setup, e.g. everything needed to build the trust chain from the trusted root. If they check the setup with the browser everything looks ok, because browsers work around these problems by caching any intermediate certificates and apply them to new connections if certificates are missing.</p>

<p>But, fresh browser profiles which have never seen these intermediates cannot fill in the missing certificates and fail to verify; the same is true with <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>.</p>

</li>
<li><p>Old versions of servers or load balancers which do not understand specific TLS versions or croak on specific data.</p>

<p>From time to time one encounters an SSL peer, which just closes the connection inside the SSL handshake. This can usually be worked around by downgrading the SSL version, e.g. by setting <code>SSL_version</code>. Modern Browsers usually deal with such servers by automatically downgrading the SSL version and repeat the connection attempt until they succeed.</p>

<p>Worse servers do not close the underlying TCP connection but instead just drop the relevant packet. This is harder to detect because it looks like a stalled connection. But downgrading the SSL version often works here too.</p>

<p>A cause of such problems are often load balancers or security devices, which have hardware acceleration and only a minimal (and less robust) SSL stack. They can often be detected because they support much fewer ciphers than other implementations.</p>

</li>
<li><p>Bad or old OpenSSL versions.</p>

<p><a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> uses OpenSSL with the help of the <a href="./Net::SSLeay.html">Net::SSLeay</a> library. It is recommend to have a recent version of this library, because it has more features and usually fewer known bugs.</p>

</li>
<li><p>Validation of client certificates fail.</p>

<p>Make sure that the purpose of the certificate allows use as ssl client (check with <code>openssl x509 -purpose</code>, that the necessary root certificate is in the path specified by <code>SSL_ca*</code> (or the default path) and that any intermediate certificates needed to build the trust chain are sent by the client.</p>

</li>
<li><p>Validation of self-signed certificate fails even if it is given with <code>SSL_ca*</code> argument.</p>

<p>The <code>SSL_ca*</code> arguments do not give a general trust store for arbitrary certificates but only specify a store for CA certificates which then can be used to verify other certificates. This especially means that certificates which are not a CA get simply ignored, notably self-signed certificates which do not also have the CA-flag set.</p>

<p>This behavior of OpenSSL differs from the more general trust-store concept which can be found in browsers and where it is possible to simply added arbitrary certificates (CA or not) as trusted.</p>

</li>
</ul>

<h1 id="Using-Non-Blocking-Sockets"><a id="Using"></a>Using Non-Blocking Sockets</h1>

<p>If you have a non-blocking socket, the expected behavior on read, write, accept or connect is to set <code>$!</code> to EWOULDBLOCK if the operation cannot be completed immediately. Note that EWOULDBLOCK is the same as EAGAIN on UNIX systems, but is different on Windows.</p>

<p>With SSL, handshakes might occur at any time, even within an established connection. In these cases it is necessary to finish the handshake before you can read or write data. This might result in situations where you want to read but must first finish the write of a handshake or where you want to write but must first finish a read. In these cases <code>$!</code> is set to EAGAIN like expected, and additionally <code>$SSL_ERROR</code> is set to either SSL_WANT_READ or SSL_WANT_WRITE. Thus if you get EWOULDBLOCK on a SSL socket you must check <code>$SSL_ERROR</code> for SSL_WANT_* and adapt your event mask accordingly.</p>

<p>Using readline on non-blocking sockets does not make much sense and I would advise against using it. And, while the behavior is not documented for other <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> classes, it will try to emulate the behavior seen there, e.g. to return the received data instead of blocking, even if the line is not complete. If an unrecoverable error occurs it will return nothing, even if it already received some data.</p>

<p>Also, I would advise against using <code>accept</code> with a non-blocking SSL object because it might block and this is not what most would expect. The reason for this is that <code>accept</code> on a non-blocking TCP socket (e.g. <a href="https://metacpan.org/pod/IO::Socket::IP">IO::Socket::IP</a>, <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a>..) results in a new TCP socket which does not inherit the non-blocking behavior of the master socket. And thus, the initial SSL handshake on the new socket inside <code>IO::Socket::SSL::accept</code> will be done in a blocking way. To work around this you are safer by doing a TCP accept and later upgrade the TCP socket in a non-blocking way with <code>start_SSL</code> and <code>accept_SSL</code>.</p>

<pre><code>    my $cl = IO::Socket::SSL-&gt;new($dst);
    $cl-&gt;blocking(0);
    my $sel = IO::Select-&gt;new($cl);
    while (1) {
        # with SSL a call for reading n bytes does not result in reading of n
        # bytes from the socket, but instead it must read at least one full SSL
        # frame. If the socket has no new bytes, but there are unprocessed data
        # from the SSL frame can_read will block!

        # wait for data on socket
        $sel-&gt;can_read();

        # new data on socket or eof
        READ:
        # this does not read only 1 byte from socket, but reads the complete SSL
        # frame and then just returns one byte. On subsequent calls it than
        # returns more byte of the same SSL frame until it needs to read the
        # next frame.
        my $n = sysread( $cl,my $buf,1);
        if ( ! defined $n ) {
            die $! if not $!{EWOULDBLOCK};
            next if $SSL_ERROR == SSL_WANT_READ;
            if ( $SSL_ERROR == SSL_WANT_WRITE ) {
                # need to write data on renegotiation
                $sel-&gt;can_write;
                next;
            }
            die &quot;something went wrong: $SSL_ERROR&quot;;
        } elsif ( ! $n ) {
            last; # eof
        } else {
            # read next bytes
            # we might have still data within the current SSL frame
            # thus first process these data instead of waiting on the underlying
            # socket object
            goto READ if $cl-&gt;pending;    # goto sysread
            next;                         # goto $sel-&gt;can_read
        }
    }</code></pre>

<p>Additionally there are differences to plain sockets when using select, poll, kqueue or similar technologies to get notified if data are available. Relying only on these calls is not sufficient in all cases since unread data might be internally buffered in the SSL stack. To detect such buffering <b>pending()</b> need to be used. Alternatively the buffering can be avoided by using <b>sysread</b> with the maximum size of an SSL frame. See <a href="./IO::Socket::SSL.html#Common-Usage-Errors">&quot;Common Usage Errors&quot;</a> for details.</p>

<h1 id="Advanced-Usage"><a id="Advanced"></a>Advanced Usage</h1>

<h2 id="SNI-Support"><a id="SNI"></a>SNI Support</h2>

<p>Newer extensions to SSL can distinguish between multiple hostnames on the same IP address using Server Name Indication (SNI).</p>

<p>Support for SNI on the client side was added somewhere in the OpenSSL 0.9.8 series, but with 1.0 a bug was fixed when the server could not decide about its hostname. Therefore client side SNI is only supported with OpenSSL 1.0 or higher in <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>. With a supported version, SNI is used automatically on the client side, if it can determine the hostname from <code>PeerAddr</code> or <code>PeerHost</code> (which are synonyms in the underlying IO::Socket:: classes and thus should never be set both or at least not to different values). On unsupported OpenSSL versions it will silently not use SNI. The hostname can also be given explicitly given with <code>SSL_hostname</code>, but in this case it will throw in error, if SNI is not supported. To check for support you might call <code>IO::Socket::SSL-&gt;can_client_sni()</code>.</p>

<p>On the server side, earlier versions of OpenSSL are supported, but only together with <a href="./Net::SSLeay.html">Net::SSLeay</a> version &gt;= 1.50. To check for support you might call <code>IO::Socket::SSL-&gt;can_server_sni()</code>. If server side SNI is supported, you might specify different certificates per host with <code>SSL_cert*</code> and <code>SSL_key*</code>, and check the requested name using <code>get_servername</code>.</p>

<h2 id="Talk-Plain-and-SSL-With-The-Same-Socket"><a id="Talk"></a>Talk Plain and SSL With The Same Socket</h2>

<p>It is often required to first exchange some plain data and then upgrade the socket to SSL after some kind of STARTTLS command. Protocols like FTPS even need a way to downgrade the socket again back to plain.</p>

<p>The common way to do this would be to create a normal socket and use <code>start_SSL</code> to upgrade and stop_SSL to downgrade:</p>

<pre><code>    my $sock = IO::Socket::INET-&gt;new(...) or die $!;
    ... exchange plain data on $sock until starttls command ...
    IO::Socket::SSL-&gt;start_SSL($sock,%sslargs) or die $SSL_ERROR;
    ... now $sock is an IO::Socket::SSL object ...
    ... exchange data with SSL on $sock until stoptls command ...
    $sock-&gt;stop_SSL or die $SSL_ERROR;
    ... now $sock is again an IO::Socket::INET object ...</code></pre>

<p>But, lots of modules just derive directly from <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a>. While this base class can be replaced with <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a>, these modules cannot easily support different base classes for SSL and plain data and switch between these classes on a starttls command.</p>

<p>To help in this case, <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> can be reduced to a plain socket on startup, and connect_SSL/accept_SSL/start_SSL can be used to enable SSL and <code>stop_SSL</code> to talk plain again:</p>

<pre><code>    my $sock = IO::Socket::SSL-&gt;new(
        PeerAddr =&gt; ...
        SSL_startHandshake =&gt; 0,
        %sslargs
    ) or die $!;
    ... exchange plain data on $sock until starttls command ...
    $sock-&gt;connect_SSL or die $SSL_ERROR;
    ... now $sock is an IO::Socket::SSL object ...
    ... exchange data with SSL on $sock until stoptls command ...
    $sock-&gt;stop_SSL or die $SSL_ERROR;
    ... $sock is still an IO::Socket::SSL object ...
    ... but data exchanged again in plain ...</code></pre>

<h1 id="Integration-Into-Own-Modules"><a id="Integration"></a>Integration Into Own Modules</h1>

<p><a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> behaves similarly to other <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> modules and thus could be integrated in the same way, but you have to take special care when using non-blocking I/O (like for handling timeouts) or using select or poll. Please study the documentation on how to deal with these differences.</p>

<p>Also, it is recommended to not set or touch most of the <code>SSL_*</code> options, so that they keep their secure defaults. It is also recommended to let the user override these SSL specific settings without the need of global settings or hacks like <code>set_args_filter_hack</code>.</p>

<p>The notable exception is <code>SSL_verifycn_scheme</code>. This should be set to the hostname verification scheme required by the module or protocol.</p>

<h1 id="Description-Of-Methods"><a id="Description"></a>Description Of Methods</h1>

<p><a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> inherits from another <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> module. The choice of the super class depends on the installed modules:</p>

<ul>

<li><p>If <a href="https://metacpan.org/pod/IO::Socket::IP">IO::Socket::IP</a> with at least version 0.20 is installed it will use this module as super class, transparently providing IPv6 and IPv4 support.</p>

</li>
<li><p>If <a href="./IO::Socket::INET6.html">IO::Socket::INET6</a> is installed it will use this module as super class, transparently providing IPv6 and IPv4 support.</p>

</li>
<li><p>Otherwise it will fall back to <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a>, which is a perl core module. With <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a> you only get IPv4 support.</p>

</li>
</ul>

<p>Please be aware that with the IPv6 capable super classes, it will look first for the IPv6 address of a given hostname. If the resolver provides an IPv6 address, but the host cannot be reached by IPv6, there will be no automatic fallback to IPv4. To avoid these problems you can enforce IPv4 for a specific socket by using the <code>Domain</code> or <code>Family</code> option with the value AF_INET as described in <a href="https://metacpan.org/pod/IO::Socket::IP">IO::Socket::IP</a>. Alternatively you can enforce IPv4 globally by loading <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> with the option &#39;inet4&#39;, in which case it will use the IPv4 only class <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a> as the super class.</p>

<p><a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> will provide all of the methods of its super class, but sometimes it will override them to match the behavior expected from SSL or to provide additional arguments.</p>

<p>The new or changed methods are described below, but please also read the section about SSL specific error handling.</p>

<dl>

<dt id="Error-Handling"><a id="Error"></a>Error Handling</dt>
<dd>

<p>If an SSL specific error occurs, the global variable <code>$SSL_ERROR</code> will be set. If the error occurred on an existing SSL socket, the method <code>errstr</code> will give access to the latest socket specific error. Both <code>$SSL_ERROR</code> and the <code>errstr</code> method give a dualvar similar to <code>$!</code>, e.g. providing an error number in numeric context or an error description in string context.</p>

</dd>
<dt id="new(...)"><a id="new"></a><b>new(...)</b></dt>
<dd>

<p>Creates a new <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> object. You may use all the friendly options that came bundled with the super class (e.g. <a href="https://metacpan.org/pod/IO::Socket::IP">IO::Socket::IP</a>, <a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a>, ...) plus (optionally) the ones described below. If you don&#39;t specify any SSL related options it will do its best in using secure defaults, e.g. choosing good ciphers, enabling proper verification, etc.</p>

<dl>

<dt id="SSL_server">SSL_server</dt>
<dd>

<p>Set this option to a true value if the socket should be used as a server. If this is not explicitly set it is assumed if the <code>Listen</code> parameter is given when creating the socket.</p>

</dd>
<dt id="SSL_hostname">SSL_hostname</dt>
<dd>

<p>This can be given to specify the hostname used for SNI, which is needed if you have multiple SSL hostnames on the same IP address. If not given it will try to determine the hostname from <code>PeerAddr</code>, which will fail if only an IP was given or if this argument is used within <code>start_SSL</code>.</p>

<p>If you want to disable SNI, set this argument to &#39;&#39;.</p>

<p>Currently only supported for the client side and will be ignored for the server side.</p>

<p>See section &quot;SNI Support&quot; for details of SNI the support.</p>

</dd>
<dt id="SSL_startHandshake">SSL_startHandshake</dt>
<dd>

<p>If this option is set to false (defaults to true) it will not start the SSL handshake yet. This has to be done later with <code>accept_SSL</code> or <code>connect_SSL</code>. Before the handshake is started read/write/etc. can be used to exchange plain data.</p>

</dd>
<dt id="SSL_keepSocketOnError">SSL_keepSocketOnError</dt>
<dd>

<p>If this option is set to true (defaults to false) it will not close the underlying TCP socket on errors. In most cases there is no real use for this behavior since both sides of the TCP connection will probably have a different idea of the current state of the connection.</p>

</dd>
<dt id="SSL_ca-|-SSL_ca_file-|-SSL_ca_path"><a id="SSL_ca"></a><a id="SSL_ca---SSL_ca_file---SSL_ca_path"></a>SSL_ca | SSL_ca_file | SSL_ca_path</dt>
<dd>

<p>Usually you want to verify that the peer certificate has been signed by a trusted certificate authority. In this case you should use this option to specify the file (<code>SSL_ca_file</code>) or directory (<code>SSL_ca_path</code>) containing the certificate(s) of the trusted certificate authorities.</p>

<p><code>SSL_ca_path</code> can also be an array or a string containing multiple path, where the path are separated by the platform specific separator. This separator is <code>;</code> on DOS, Windows, Netware, <code>,</code> on VMS and <code>:</code> for all the other systems. If multiple path are given at least one of these must be accessible.</p>

<p>You can also give a list of X509* certificate handles (like you get from <a href="./Net::SSLeay.html">Net::SSLeay</a> or <a href="https://metacpan.org/pod/IO::Socket::SSL::Utils::PEM_xxx2cert">IO::Socket::SSL::Utils::PEM_xxx2cert</a>) with <code>SSL_ca</code>. These will be added to the CA store before path and file and thus take precedence. If neither SSL_ca, nor SSL_ca_file or SSL_ca_path are set it will use <code>default_ca()</code> to determine the user-set or system defaults. If you really don&#39;t want to set a CA set SSL_ca_file or SSL_ca_path to <code>\undef</code> or SSL_ca to an empty list. (unfortunately <code>&#39;&#39;</code> is used by some modules using <a href="https://metacpan.org/pod/distribution/IO-Socket-SSL/lib/IO/Socket/SSL.pod">IO::Socket::SSL</a> when CA is not explicitly given).</p>

</dd>
<dt id="SSL_client_ca-|-SSL_client_ca_file"><a id="SSL_client_ca"></a><a id="SSL_client_ca---SSL_client_ca_file"></a>SSL_client_ca | SSL_client_ca_file</dt>
<dd>

<p>If verify_mode is VERIFY_PEER on the server side these options can be used to set the list of acceptable CAs for the client. This way the client can select they required certificate from a list of certificates. The value for these options is similar to <code>SSL_ca</code> and <code>SSL_ca_file</code>.</p>

</dd>
<dt id="SSL_fingerprint">SSL_fingerprint</dt>
<dd>

<p>Sometimes you have a self-signed certificate or a certificate issued by an unknown CA and you really want to accept it, but don&#39;t want to disable verification at all. In this case you can specify the fingerprint of the certificate as <code>&#39;algo$hex_fingerprint&#39;</code>. <code>algo</code> is a fingerprint algorithm supported by OpenSSL, e.g. &#39;sha1&#39;,&#39;sha256&#39;... and <code>hex_fingerprint</code> is the hexadecimal representation of the binary fingerprint. Any colons inside the hex string will be ignored.</p>

<p>If you want to use the fingerprint of the pubkey inside the certificate instead of the certificate use the syntax <code>&#39;algo$pub$hex_fingerprint&#39;</code> instead. To get the fingerprint of an established connection you can use <code>get_fingerprint</code>.</p>

<p>It is also possible to skip <code>algo$</code>, i.e. only specify the fingerprint. In this case the likely algorithms will be automatically detected based on the length of the digest string.</p>

<p>You can specify a list of fingerprints in case you have several acceptable certificates. If a fingerprint matches the topmost (i.e. leaf) certificate no additional validations can make the verification fail.</p>

</dd>
<dt id="SSL_cert_file-|-SSL_cert-|-SSL_key_file-|-SSL_key"><a id="SSL_cert_file"></a><a id="SSL_cert_file---SSL_cert---SSL_key_file---SSL_key"></a>SSL_cert_file | SSL_cert | SSL_key_file | SSL_key</dt>
<dd>

<p>If you create a server you usually need to specify a server certificate which should be verified by the client. Same is true for client certificates, which should be verified by the server. The certificate can be given as a file with SSL_cert_file or as an internal representation of an X509* object (like you get from <a href="./Net::SSLeay.html">Net::SSLeay</a> or <a href="https://metacpan.org/pod/IO::Socket::SSL::Utils::PEM_xxx2cert">IO::Socket::SSL::Utils::PEM_xxx2cert</a>) with SSL_cert. If given as a file it will automatically detect the format. Supported file formats are PEM, DER and PKCS#12, where PEM and PKCS#12 can contain the certificate and the chain to use, while DER can only contain a single certificate.</p>

<p>If given as a list of X509* please note, that the all the chain certificates (e.g. all except the first) will be &quot;consumed&quot; by openssl and will be freed if the SSL context gets destroyed - so you should never free them yourself. But the servers certificate (e.g. the first) will not be consumed by openssl and thus must be freed by the application.</p>

<p>For each certificate a key is need, which can either be given as a file with SSL_key_file or as an internal representation of an EVP_PKEY* object with SSL_key (like you get from <a href="./Net::SSLeay.html">Net::SSLeay</a> or <a href="https://metacpan.org/pod/IO::Socket::SSL::Utils::PEM_xxx2key">IO::Socket::SSL::Utils::PEM_xxx2key</a>). If a key was already given within the PKCS#12 file specified by SSL_cert_file it will ignore any SSL_key or SSL_key_file. If no SSL_key or SSL_key_file was given it will try to use the PEM file given with SSL_cert_file again, maybe it contains the key too.</p>

<p>If your SSL server should be able to use different certificates on the same IP address, depending on the name given by SNI, you can use a hash reference instead of a file with <code>&lt;hostname =</code> cert_file&gt;&gt;.</p>

<p>If your SSL server should be able to use both RSA and ECDSA certificates for the same domain/IP a similar hash reference like with SNI is given. The domain names used to specify the additional certificates should be <code>hostname%whatever</code>, i.e. <code>hostname%ecc</code> or similar. This needs at least OpenSSL 1.0.2. To let the server pick the certificate based on the clients cipher preference <code>SSL_honor_cipher_order</code> should be set to false.</p>

<p>In case certs and keys are needed but not given it might fall back to builtin defaults, see &quot;Defaults for Cert, Key and CA&quot;.</p>

<p>Examples:</p>

<pre><code> SSL_cert_file =&gt; &#39;mycert.pem&#39;,
 SSL_key_file =&gt; &#39;mykey.pem&#39;,

 SSL_cert_file =&gt; {
    &quot;foo.example.org&quot; =&gt; &#39;foo-cert.pem&#39;,
    &quot;foo.example.org%ecc&quot; =&gt; &#39;foo-ecc-cert.pem&#39;,
    &quot;bar.example.org&quot; =&gt; &#39;bar-cert.pem&#39;,
    # used when nothing matches or client does not support SNI
    &#39;&#39; =&gt; &#39;default-cert.pem&#39;,
    &#39;%ecc&#39; =&gt; &#39;default-ecc-cert.pem&#39;,
 },
 SSL_key_file =&gt; {
    &quot;foo.example.org&quot; =&gt; &#39;foo-key.pem&#39;,
    &quot;foo.example.org%ecc&quot; =&gt; &#39;foo-ecc-key.pem&#39;,
    &quot;bar.example.org&quot; =&gt; &#39;bar-key.pem&#39;,
    # used when nothing matches or client does not support SNI
    &#39;&#39; =&gt; &#39;default-key.pem&#39;,
    &#39;%ecc&#39; =&gt; &#39;default-ecc-key.pem&#39;,
 }</code></pre>

</dd>
<dt id="SSL_passwd_cb">SSL_passwd_cb</dt>
<dd>

<p>If your private key is encrypted, you might not want the default password prompt from Net::SSLeay. This option takes a reference to a subroutine that should return the password required to decrypt your private key.</p>

</dd>
<dt id="SSL_use_cert">SSL_use_cert</dt>
<dd>

<p>If this is true, it forces IO::Socket::SSL to use a certificate and key, even if you are setting up an SSL client. If this is set to 0 (the default), then you will only need a certificate and key if you are setting up a server.</p>

<p>SSL_use_cert will implicitly be set if SSL_server is set. For convenience it is also set if it was not given but a cert was given for use (SSL_cert_file or similar).</p>

</dd>
<dt id="SSL_version">SSL_version</dt>
<dd>

<p>Sets the version of the SSL protocol used to transmit data. &#39;SSLv23&#39; uses a handshake compatible with SSL2.0, SSL3.0 and TLS1.x, while &#39;SSLv2&#39;, &#39;SSLv3&#39;, &#39;TLSv1&#39;, &#39;TLSv1_1&#39;, &#39;TLSv1_2&#39;, or &#39;TLSv1_3&#39; restrict handshake and protocol to the specified version. All values are case-insensitive. Instead of &#39;TLSv1_1&#39;, &#39;TLSv1_2&#39;, and &#39;TLSv1_3&#39; one can also use &#39;TLSv11&#39;, &#39;TLSv12&#39;, and &#39;TLSv13&#39;. Which protocol versions are actually supported depend on the versions of OpenSSL and Net::SSLeay installed, but modern protocols like TLS 1.3 are supported by these for many years now.</p>

<p>Independent from the handshake format you can limit to set of accepted SSL versions by adding !version separated by &#39;:&#39;.</p>

<p>The default SSL_version is &#39;SSLv23:!TLSv1:!TLSv1_1:!SSLv3:!SSLv2&#39;. This means, that the handshake format is compatible to SSL2.0 and higher, but that the successful handshake is limited to TLS1.2 and higher, that is no SSL2.0, SSL3.0, TLS 1.0 or TLS 1.1 because these versions have serious security issues and should not be used anymore.</p>

<p>You can also use !TLSv1_1 and !TLSv1_2 to disable TLS versions 1.1 and 1.2 while still allowing TLS version 1.0. Setting the version instead to &#39;TLSv1&#39; might break interaction with very old or broken clients, which expect a SSL2.0 compatible handshake. On the other side some broken clients just close the connection when they receive a TLS version 1.1 request. In this case setting the version to &#39;SSLv23:!SSLv2:!SSLv3:!TLSv1_1:!TLSv1_2&#39; might help.</p>

</dd>
<dt id="SSL_cipher_list">SSL_cipher_list</dt>
<dd>

<p>If this option is set the cipher list for the connection will be set to the given value, e.g. something like &#39;ALL:!LOW:!EXP:!aNULL&#39;. This will only affect ciphers for TLS 1.2 and lower. See the OpenSSL documentation (<a href="https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html#CIPHER-STRINGS">https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html#CIPHER-STRINGS</a>) for more details.</p>

<p>Unless you fail to contact your peer because of no shared ciphers it is recommended to leave this option at the default setting, which uses the system default but disables some insecure ciphers which might still be enabled on older systems.</p>

<p>In case different cipher lists are needed for different SNI hosts a hash can be given with the host as key and the cipher suite as value, similar to <b>SSL_cert*</b>.</p>

</dd>
<dt id="SSL_ciphersuites">SSL_ciphersuites</dt>
<dd>

<p>If this option is set the TLS 1.3 ciphersuites for the connection will be set to the given value. This is similar to SSL_cipher_list, but only for TLS 1.3 ciphers. See argument <code>-ciphersuites</code> in the OpenSSL documentation (<a href="https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html">https://www.openssl.org/docs/manmaster/man1/openssl-ciphers.html</a>) for details.</p>

<p>Unless you fail to contact your peer because of no shared ciphers it is recommended to leave this option at the default setting, which uses the system default.</p>

<p>In case different cipher lists are needed for different SNI hosts a hash can be given with the host as key and the cipher suite as value, similar to <b>SSL_cert*</b>.</p>

</dd>
<dt id="SSL_honor_cipher_order">SSL_honor_cipher_order</dt>
<dd>

<p>If this option is true the cipher order the server specified is used instead of the order proposed by the client. This option defaults to true to make use of our secure cipher list setting.</p>

</dd>
<dt id="SSL_dh_file">SSL_dh_file</dt>
<dd>

<p>To create a server which provides forward secrecy you need to either give the DH parameters or (better, because faster) the ECDH curve. This setting cares about DH parameters.</p>

<p>To support non-elliptic Diffie-Hellman key exchange a suitable file needs to be given here or the SSL_dh should be used with an appropriate value. See dhparam command in openssl for more information.</p>

<p>If neither <code>SSL_dh_file</code> nor <code>SSL_dh</code> are set a builtin DH parameter with a length of 2048 bit is used to offer DH key exchange by default. If you don&#39;t want this (e.g. disable DH key exchange) explicitly set this or the <code>SSL_dh</code> parameter to undef.</p>

</dd>
<dt id="SSL_dh">SSL_dh</dt>
<dd>

<p>Like SSL_dh_file, but instead of giving a file you use a preloaded or generated DH*.</p>

</dd>
<dt id="SSL_ecdh_curve">SSL_ecdh_curve</dt>
<dd>

<p>To create a server which provides forward secrecy you need to either give the DH parameters or (better, because faster) the ECDH curve. This setting cares about the ECDH curve(s).</p>

<p>To support Elliptic Curve Diffie-Hellmann key exchange the OID or NID of at least one suitable curve needs to be provided here.</p>

<p>With OpenSSL 1.1.0+ this parameter defaults to <code>auto</code>, which means that it lets OpenSSL pick the best settings. If support for CTX_set_ecdh_auto is implemented in Net::SSLeay (needs at least version 1.86) it will use this to implement the same default. Otherwise it will default to <code>prime256v1</code> (builtin of OpenSSL) in order to offer ECDH key exchange by default.</p>

<p>If setting groups or curves is supported by Net::SSLeay (needs at least version 1.86) then multiple curves can be given here in the order of the preference, i.e. <code>P-521:P-384:P-256</code>. When used at the client side this will include the supported curves as extension in the TLS handshake.</p>

<p>If you don&#39;t want to have ECDH key exchange this could be set to undef or set <code>SSL_ciphers</code> to exclude all of these ciphers.</p>

<p>You can check if ECDH support is available by calling <code>IO::Socket::SSL-&gt;can_ecdh</code>.</p>

</dd>
<dt id="SSL_verify_mode">SSL_verify_mode</dt>
<dd>

<p>This option sets the verification mode for the peer certificate. You may combine SSL_VERIFY_PEER (verify_peer), SSL_VERIFY_FAIL_IF_NO_PEER_CERT (fail verification if no peer certificate exists; ignored for clients), SSL_VERIFY_CLIENT_ONCE (verify client once; ignored for clients). See OpenSSL man page for SSL_CTX_set_verify for more information.</p>

<p>The default is SSL_VERIFY_NONE for server (e.g. no check for client certificate) and SSL_VERIFY_PEER for client (check server certificate).</p>

</dd>
<dt id="SSL_verify_callback">SSL_verify_callback</dt>
<dd>

<p>If you want to verify certificates yourself, you can pass a sub reference along with this parameter to do so. When the callback is called, it will be passed:</p>

<dl>

<dt id="1.-a-true/false-value-that-indicates-what-OpenSSL-thinks-of-the-certificate,"><a id="1"></a><a id="a-true-false-value-that-indicates-what-OpenSSL-thinks-of-the-certificate"></a>1. a true/false value that indicates what OpenSSL thinks of the certificate,</dt>
<dd>

</dd>
<dt id="2.-a-C-style-memory-address-of-the-certificate-store,"><a id="2"></a><a id="a-C-style-memory-address-of-the-certificate-store"></a>2. a C-style memory address of the certificate store,</dt>
<dd>

</dd>
<dt id="3.-a-string-containing-the-certificate&#39;s-issuer-attributes-and-owner-attributes,-and"><a id="3"></a><a id="a-string-containing-the-certificate-s-issuer-attributes-and-owner-attributes--and"></a>3. a string containing the certificate&#39;s issuer attributes and owner attributes, and</dt>
<dd>

</dd>
<dt id="4.-a-string-containing-any-errors-encountered-(0-if-no-errors)."><a id="4"></a><a id="a-string-containing-any-errors-encountered--0-if-no-errors"></a>4. a string containing any errors encountered (0 if no errors).</dt>
<dd>

</dd>
<dt id="5.-a-C-style-memory-address-of-the-peer&#39;s-own-certificate-(convertible-to-PEM-form-with-Net::SSLeay::PEM_get_string_X509())."><a id="5"></a><a id="a-C-style-memory-address-of-the-peer-s-own-certificate--convertible-to-PEM-form-with-Net::SSLeay::PEM_get_string_X509"></a>5. a C-style memory address of the peer&#39;s own certificate (convertible to PEM form with Net::SSLeay::PEM_get_string_X509()).</dt>
<dd>

</dd>
<dt id="6.-The-depth-of-the-certificate-in-the-chain.-Depth-0-is-the-leaf-certificate."><a id="6"></a><a id="The-depth-of-the-certificate-in-the-chain.-Depth-0-is-the-leaf-certificate"></a>6. The depth of the certificate in the chain. Depth 0 is the leaf certificate.</dt>
<dd>

</dd>
</dl>

<p>The function should return 1 or 0, depending on whether it thinks the certificate is valid or invalid. The default is to let OpenSSL do all of the busy work.</p>

<p>The callback will be called for each element in the certificate chain.</p>

<p>See the OpenSSL documentation for SSL_CTX_set_verify for more information.</p>

</dd>
<dt id="SSL_verifycn_scheme">SSL_verifycn_scheme</dt>
<dd>

<p>The scheme is used to correctly verify the identity inside the certificate by using the hostname of the peer. See the information about the verification schemes in <b>verify_hostname</b>.</p>

<p>If you don&#39;t specify a scheme it will use &#39;default&#39;, but only complain loudly if the name verification fails instead of letting the whole certificate verification fail. THIS WILL CHANGE, e.g. it will let the certificate verification fail in the future if the hostname does not match the certificate !!!! To override the name used in verification use <b>SSL_verifycn_name</b>.</p>

<p>The scheme &#39;default&#39; is a superset of the usual schemes, which will accept the hostname in common name and subjectAltName and allow wildcards everywhere. While using this scheme is way more secure than no name verification at all you better should use the scheme specific to your application protocol, e.g. &#39;http&#39;, &#39;ftp&#39;...</p>

<p>If you are really sure, that you don&#39;t want to verify the identity using the hostname you can use &#39;none&#39; as a scheme. In this case you&#39;d better have alternative forms of verification, like a certificate fingerprint or do a manual verification later by calling <b>verify_hostname</b> yourself.</p>

</dd>
<dt id="SSL_verifycn_publicsuffix">SSL_verifycn_publicsuffix</dt>
<dd>

<p>This option is used to specify the behavior when checking wildcards certificates for public suffixes, e.g. no wildcard certificates for *.com or *.co.uk should be accepted, while *.example.com or *.example.co.uk is ok.</p>

<p>If not specified it will simply use the builtin default of <a href="https://metacpan.org/pod/IO::Socket::SSL::PublicSuffix">IO::Socket::SSL::PublicSuffix</a>, you can create another object with from_string or from_file of this module.</p>

<p>To disable verification of public suffix set this option to <code>&#39;&#39;</code>.</p>

</dd>
<dt id="SSL_verifycn_name">SSL_verifycn_name</dt>
<dd>

<p>Set the name which is used in verification of hostname. If SSL_verifycn_scheme is set and no SSL_verifycn_name is given it will try to use SSL_hostname or PeerHost and PeerAddr settings and fail if no name can be determined. If SSL_verifycn_scheme is not set it will use a default scheme and warn if it cannot determine a hostname, but it will not fail.</p>

<p>Using PeerHost or PeerAddr works only if you create the connection directly with <code>IO::Socket::SSL-&gt;new</code>, if an IO::Socket::INET object is upgraded with <b>start_SSL</b> the name has to be given in <b>SSL_verifycn_name</b> or <b>SSL_hostname</b>.</p>

</dd>
<dt id="SSL_check_crl">SSL_check_crl</dt>
<dd>

<p>If you want to verify that the peer certificate has not been revoked by the signing authority, set this value to true. OpenSSL will search for the CRL in your SSL_ca_path, or use the file specified by SSL_crl_file. See the Net::SSLeay documentation for more details. Note that this functionality appears to be broken with OpenSSL &lt; v0.9.7b, so its use with lower versions will result in an error.</p>

</dd>
<dt id="SSL_crl_file">SSL_crl_file</dt>
<dd>

<p>If you want to specify the CRL file to be used, set this value to the pathname to be used. This must be used in addition to setting SSL_check_crl.</p>

</dd>
<dt id="SSL_ocsp_mode">SSL_ocsp_mode</dt>
<dd>

<p>Defines how certificate revocation is done using OCSP (Online Status Revocation Protocol). The default is to send a request for OCSP stapling to the server and if the server sends an OCSP response back the result will be used.</p>

<p>Any other OCSP checking needs to be done manually with <code>ocsp_resolver</code>.</p>

<p>The following flags can be combined with <code>|</code>:</p>

<dl>

<dt id="SSL_OCSP_NO_STAPLE">SSL_OCSP_NO_STAPLE</dt>
<dd>

<p>Don&#39;t ask for OCSP stapling. This is the default if SSL_verify_mode is VERIFY_NONE.</p>

</dd>
<dt id="SSL_OCSP_TRY_STAPLE">SSL_OCSP_TRY_STAPLE</dt>
<dd>

<p>Try OCSP stapling, but don&#39;t complain if it gets no stapled response back. This is the default if SSL_verify_mode is VERIFY_PEER (the default).</p>

</dd>
<dt id="SSL_OCSP_MUST_STAPLE">SSL_OCSP_MUST_STAPLE</dt>
<dd>

<p>Consider it a hard error, if the server does not send a stapled OCSP response back. Most servers currently send no stapled OCSP response back.</p>

</dd>
<dt id="SSL_OCSP_FAIL_HARD">SSL_OCSP_FAIL_HARD</dt>
<dd>

<p>Fail hard on response errors, default is to fail soft like the browsers do. Soft errors mean, that the OCSP response is not usable, e.g. no response, error response, no valid signature etc. Certificate revocations inside a verified response are considered hard errors in any case.</p>

<p>Soft errors inside a stapled response are never considered hard, e.g. it is expected that in this case an OCSP request will be send to the responsible OCSP responder.</p>

</dd>
<dt id="SSL_OCSP_FULL_CHAIN">SSL_OCSP_FULL_CHAIN</dt>
<dd>

<p>This will set up the <code>ocsp_resolver</code> so that all certificates from the peer chain will be checked, otherwise only the leaf certificate will be checked against revocation.</p>

</dd>
</dl>

</dd>
<dt id="SSL_ocsp_staple_callback">SSL_ocsp_staple_callback</dt>
<dd>

<p>If this callback is defined, it will be called with the SSL object and the OCSP response handle obtained from the peer, e.g. <code>&lt;$cb-</code>($ssl,$resp)&gt;&gt;. If the peer did not provide a stapled OCSP response the function will be called with <code>$resp=undef</code>. Because the OCSP response handle is no longer valid after leaving this function it should not by copied or freed. If access to the response is necessary after leaving this function it can be serialized with <code>Net::SSLeay::i2d_OCSP_RESPONSE</code>.</p>

<p>If no such callback is provided, it will use the default one, which verifies the response and uses it to check if the certificate(s) of the connection got revoked.</p>

</dd>
<dt id="SSL_ocsp_cache">SSL_ocsp_cache</dt>
<dd>

<p>With this option a cache can be given for caching OCSP responses, which could be shared between different SSL contexts. If not given a cache specific to the SSL context only will be used.</p>

<p>You can either create a new cache with <code>IO::Socket::SSL::OCSP_Cache-&gt;new([size])</code> or implement your own cache, which needs to have methods <code>put($key,\%entry)</code> and <code>get($key)</code> (returning <code>\%entry</code>) where entry is the hash representation of the OCSP response with fields like <code>nextUpdate</code>. The default implementation of the cache will consider responses valid as long as <code>nextUpdate</code> is less then the current time.</p>

</dd>
<dt id="SSL_reuse_ctx">SSL_reuse_ctx</dt>
<dd>

<p>If you have already set the above options for a previous instance of IO::Socket::SSL, then you can reuse the SSL context of that instance by passing it as the value for the SSL_reuse_ctx parameter. You may also create a new instance of the IO::Socket::SSL::SSL_Context class, using any context options that you desire without specifying connection options, and pass that here instead.</p>

<p>If you use this option, all other context-related options that you pass in the same call to new() will be ignored unless the context supplied was invalid. Note that, contrary to versions of IO::Socket::SSL below v0.90, a global SSL context will not be implicitly used unless you use the set_default_context() function.</p>

</dd>
<dt id="SSL_create_ctx_callback">SSL_create_ctx_callback</dt>
<dd>

<p>With this callback you can make individual settings to the context after it got created and the default setup was done. The callback will be called with the CTX object from Net::SSLeay as the single argument.</p>

<p>Example for limiting the server session cache size:</p>

<pre><code>  SSL_create_ctx_callback =&gt; sub {
      my $ctx = shift;
      Net::SSLeay::CTX_sess_set_cache_size($ctx,128);
  }</code></pre>

</dd>
<dt id="SSL_session_cache_size">SSL_session_cache_size</dt>
<dd>

<p>If you make repeated connections to the same host/port and the SSL renegotiation time is an issue, you can turn on client-side session caching with this option by specifying a positive cache size. For successive connections, pass the SSL_reuse_ctx option to the new() calls (or use set_default_context()) to make use of the cached sessions. The session cache size refers to the number of unique host/port pairs that can be stored at one time; the oldest sessions in the cache will be removed if new ones are added.</p>

<p>This option does not effect the session cache a server has for it&#39;s clients, e.g. it does not affect SSL objects with SSL_server set.</p>

<p>Note that session caching with TLS 1.3 needs at least Net::SSLeay 1.86.</p>

</dd>
<dt id="SSL_session_cache">SSL_session_cache</dt>
<dd>

<p>Specifies session cache object which should be used instead of creating a new. Overrules SSL_session_cache_size. This option is useful if you want to reuse the cache, but not the rest of the context.</p>

<p>A session cache object can be created using <code>IO::Socket::SSL::Session_Cache-&gt;new( cachesize )</code>.</p>

<p>Use set_default_session_cache() to set a global cache object.</p>

</dd>
<dt id="SSL_session_key">SSL_session_key</dt>
<dd>

<p>Specifies a key to use for lookups and inserts into client-side session cache. Per default ip:port of destination will be used, but sometimes you want to share the same session over multiple ports on the same server (like with FTPS).</p>

</dd>
<dt id="SSL_session_id_context">SSL_session_id_context</dt>
<dd>

<p>This gives an id for the servers session cache. It&#39;s necessary if you want clients to connect with a client certificate. If not given but SSL_verify_mode specifies the need for client certificate a context unique id will be picked.</p>

</dd>
<dt id="SSL_error_trap">SSL_error_trap</dt>
<dd>

<p>When using the accept() or connect() methods, it may be the case that the actual socket connection works but the SSL negotiation fails, as in the case of an HTTP client connecting to an HTTPS server. Passing a subroutine ref attached to this parameter allows you to gain control of the orphaned socket instead of having it be closed forcibly. The subroutine, if called, will be passed two parameters: a reference to the socket on which the SSL negotiation failed and the full text of the error message.</p>

</dd>
<dt id="SSL_npn_protocols">SSL_npn_protocols</dt>
<dd>

<p>If used on the server side it specifies list of protocols advertised by SSL server as an array ref, e.g. [&#39;spdy/2&#39;,&#39;http1.1&#39;]. On the client side it specifies the protocols offered by the client for NPN as an array ref. See also method <code>next_proto_negotiated</code>.</p>

<p>Next Protocol Negotiation (NPN) is available with Net::SSLeay 1.46+ and openssl-1.0.1+. NPN is unavailable in TLSv1.3 protocol. To check support you might call <code>IO::Socket::SSL-&gt;can_npn()</code>. If you use this option with an unsupported Net::SSLeay/OpenSSL it will throw an error.</p>

</dd>
<dt id="SSL_alpn_protocols">SSL_alpn_protocols</dt>
<dd>

<p>If used on the server side it specifies list of protocols supported by the SSL server as an array ref, e.g. [&#39;http/2.0&#39;, &#39;spdy/3.1&#39;,&#39;http/1.1&#39;]. On the client side it specifies the protocols advertised by the client for ALPN as an array ref. See also method <code>alpn_selected</code>.</p>

<p>Application-Layer Protocol Negotiation (ALPN) is available with Net::SSLeay 1.56+ and openssl-1.0.2+. More details about the extension are in RFC7301. To check support you might call <code>IO::Socket::SSL-&gt;can_alpn()</code>. If you use this option with an unsupported Net::SSLeay/OpenSSL it will throw an error.</p>

<p>Note that some client implementations may encounter problems if both NPN and ALPN are specified. Since ALPN is intended as a replacement for NPN, try providing ALPN protocols then fall back to NPN if that fails.</p>

</dd>
<dt id="SSL_ticket_keycb-=&gt;-[$sub,$data]-|-$sub"><a id="SSL_ticket_keycb"></a><a id="SSL_ticket_keycb----sub-data-----sub"></a>SSL_ticket_keycb =&gt; [$sub,$data] | $sub</dt>
<dd>

<p>This is a callback used for stateless session reuse (Session Tickets, RFC 5077).</p>

<p>This callback will be called as <code>$sub-&gt;($data,[$key_name])</code> where <code>$data</code> is the argument given to SSL_ticket_keycb (or undef) and <code>$key_name</code> depends on the mode:</p>

<dl>

<dt id="encrypt-ticket"><a id="encrypt"></a>encrypt ticket</dt>
<dd>

<p>If a ticket needs to be encrypted the callback will be called without <code>$key_name</code>. In this case it should return <code>($current_key,$current_key_name</code>) where <code>$current_key</code> is the current key (32 byte random data) and <code>$current_key_name</code> the name associated with this key (exactly 16 byte). This <code>$current_key_name</code> will be incorporated into the ticket.</p>

</dd>
<dt id="decrypt-ticket"><a id="decrypt"></a>decrypt ticket</dt>
<dd>

<p>If a ticket needs to be decrypted the callback will be called with <code>$key_name</code> as found in the ticket. It should return <code>($key,$current_key_name</code>) where <code>$key</code> is the key associated with the given <code>$key_name</code> and <code>$current_key_name</code> the name associated with the currently active key. If <code>$current_key_name</code> is different from the given <code>$key_name</code> the callback will be called again to re-encrypt the ticket with the currently active key.</p>

<p>If no key can be found which matches the given <code>$key_name</code> then this function should return nothing (empty list).</p>

<p>This mechanism should be used to limit the life time for each key encrypting the ticket. Compromise of a ticket encryption key might lead to decryption of SSL sessions which used session tickets protected by this key.</p>

</dd>
</dl>

<p>Example:</p>

<pre><code>    Net::SSLeay::RAND_bytes(my $oldkey,32);
    Net::SSLeay::RAND_bytes(my $newkey,32);
    my $oldkey_name = pack(&quot;a16&quot;,&#39;oldsecret&#39;);
    my $newkey_name = pack(&quot;a16&quot;,&#39;newsecret&#39;);

    my @keys = (
       [ $newkey_name, $newkey ], # current active key
       [ $oldkey_name, $oldkey ], # already expired
    );

    my $keycb = [ sub {
       my ($mykeys,$name) = @_;

       # return (current_key, current_key_name) if no name given
       return ($mykeys-&gt;[0][1],$mykeys-&gt;[0][0]) if ! $name;

       # return (matching_key, current_key_name) if we find a key matching
       # the given name
       for(my $i = 0; $i&lt;@$mykeys; $i++) {
           next if $name ne $mykeys-&gt;[$i][0];
           return ($mykeys-&gt;[$i][1],$mykeys-&gt;[0][0]);
       }

       # no matching key found
       return;
    },\@keys ];

    my $srv = IO::Socket::SSL-&gt;new(..., SSL_ticket_keycb =&gt; $keycb);</code></pre>

</dd>
<dt id="SSL_mode_release_buffers-1|0"><a id="SSL_mode_release_buffers"></a><a id="SSL_mode_release_buffers-1-0"></a>SSL_mode_release_buffers 1|0</dt>
<dd>

<p>This enables or disables the SSL_MODE_RELEASE_BUFFERS option on the SSL object. With this option the read buffer will be released after each SSL_read but will need to be reallocated for each new SSL_read. If memory usage is a concern this might save lots of memory in the mean time though, about 34k per idle SSL connection according to the documentation in SSL_CTX_set_mode(3ssl).</p>

</dd>
</dl>

</dd>
<dt id="accept"><b>accept</b></dt>
<dd>

<p>This behaves similar to the accept function of the underlying socket class, but additionally does the initial SSL handshake. But because the underlying socket class does return a blocking file handle even when accept is called on a non-blocking socket, the SSL handshake on the new file object will be done in a blocking way. Please see the section about non-blocking I/O for details. If you don&#39;t like this behavior you should do accept on the TCP socket and then upgrade it with <code>start_SSL</code> later.</p>

</dd>
<dt id="connect(...)"><a id="connect"></a><b>connect(...)</b></dt>
<dd>

<p>This behaves similar to the connect function but also does an SSL handshake. Because you cannot give SSL specific arguments to this function, you should better either use <code>new</code> to create a connect SSL socket or <code>start_SSL</code> to upgrade an established TCP socket to SSL.</p>

</dd>
<dt id="close(...)"><a id="close"></a><b>close(...)</b></dt>
<dd>

<p>Contrary to a close for a simple INET socket a close in SSL also mandates a proper shutdown of the SSL part. This is done by sending a close notify message by both peers.</p>

<p>A naive implementation would thus wait until it receives the close notify message from the peer - which conflicts with the commonly expected semantic that a close will not block. The default behavior is thus to only send a close notify but not wait for the close notify of the peer. If this is required <code>SSL_fast_shutdown</code> need to be explicitly set to false.</p>

<p>There are also cases where a SSL shutdown should not be done at all. This is true for example when forking to let a child deal with the socket and closing the socket in the parent process. A naive explicit <code>close</code> or an implicit close when destroying the socket in the parent would send a close notify to the peer which would make the SSL socket in the client process unusable. In this case an explicit <code>close</code> with <code>SSL_no_shutdown</code> set to true should be done in the parent process.</p>

<p>For more details and other arguments see <code>stop_SSL</code> which gets called from <code>close</code> to shutdown the SSL state of the socket.</p>

</dd>
<dt id="sysread(-BUF,-LEN,-[-OFFSET-]-)"><a id="sysread"></a><a id="sysread--BUF--LEN----OFFSET"></a><b>sysread( BUF, LEN, [ OFFSET ] )</b></dt>
<dd>

<p>This function behaves from the outside the same as <b>sysread</b> in other <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> objects, e.g. it returns at most LEN bytes of data. But in reality it reads not only LEN bytes from the underlying socket, but at a single SSL frame. It then returns up to LEN bytes it decrypted from this SSL frame. If the frame contained more data than requested it will return only LEN data, buffer the rest and return it on further read calls. This means, that it might be possible to read data, even if the underlying socket is not readable, so using poll or select might not be sufficient.</p>

<p>sysread will only return data from a single SSL frame, e.g. either the pending data from the already buffered frame or it will read a frame from the underlying socket and return the decrypted data. It will not return data spanning several SSL frames in a single call.</p>

<p>Also, calls to sysread might fail, because it must first finish an SSL handshake.</p>

<p>To understand these behaviors is essential, if you write applications which use event loops and/or non-blocking sockets. Please read the specific sections in this documentation.</p>

</dd>
<dt id="syswrite(-BUF,-[-LEN,-[-OFFSET-]]-)"><a id="syswrite"></a><a id="syswrite--BUF----LEN----OFFSET"></a><b>syswrite( BUF, [ LEN, [ OFFSET ]] )</b></dt>
<dd>

<p>This functions behaves from the outside the same as <b>syswrite</b> in other <a href="https://metacpan.org/pod/IO::Socket">IO::Socket</a> objects, e.g. it will write at most LEN bytes to the socket, but there is no guarantee, that all LEN bytes are written. It will return the number of bytes written. Because it basically just calls SSL_write from OpenSSL syswrite will write at most a single SSL frame. This means, that no more than 16.384 bytes, which is the maximum size of an SSL frame, will be written at once.</p>

<p>For non-blocking sockets SSL specific behavior applies. Pease read the specific section in this documentation.</p>

</dd>
<dt id="peek(-BUF,-LEN,-[-OFFSET-])"><a id="peek"></a><a id="peek--BUF--LEN----OFFSET"></a><b>peek( BUF, LEN, [ OFFSET ])</b></dt>
<dd>

<p>This function has exactly the same syntax as <b>sysread</b>, and performs nearly the same task but will not advance the read position so that successive calls to peek() with the same arguments will return the same results. This function requires OpenSSL 0.9.6a or later to work.</p>

</dd>
<dt id="pending()"><a id="pending"></a><b>pending()</b></dt>
<dd>

<p>This function gives you the number of bytes available without reading from the underlying socket object. This function is essential if you work with event loops, please see the section about polling SSL sockets.</p>

</dd>
<dt id="get_fingerprint([algo,certificate,pubkey])"><a id="get_fingerprint"></a><a id="get_fingerprint-algo-certificate-pubkey"></a><b>get_fingerprint([algo,certificate,pubkey])</b></dt>
<dd>

<p>This methods returns the fingerprint of the given certificate in the form <code>algo$digest_hex</code>, where <code>algo</code> is the used algorithm, default &#39;sha256&#39;. If no certificate is given the peer certificate of the connection is used. If <code>pubkey</code> is true it will not return the fingerprint of the certificate but instead the fingerprint of the pubkey inside the certificate as <code>algo$pub$digest_hex</code>.</p>

</dd>
<dt id="get_fingerprint_bin([algo,certificate,pubkey])"><a id="get_fingerprint_bin"></a><a id="get_fingerprint_bin-algo-certificate-pubkey"></a><b>get_fingerprint_bin([algo,certificate,pubkey])</b></dt>
<dd>

<p>This methods returns the binary fingerprint of the given certificate by using the algorithm <code>algo</code>, default &#39;sha256&#39;. If no certificate is given the peer certificate of the connection is used. If <code>pubkey</code> is true it will not return the fingerprint of the certificate but instead the fingerprint of the pubkey inside the certificate.</p>

</dd>
<dt id="get_cipher()"><a id="get_cipher"></a><b>get_cipher()</b></dt>
<dd>

<p>Returns the string form of the cipher that the IO::Socket::SSL object is using.</p>

</dd>
<dt id="get_sslversion()"><a id="get_sslversion"></a><b>get_sslversion()</b></dt>
<dd>

<p>Returns the string representation of the SSL version of an established connection.</p>

</dd>
<dt id="get_sslversion_int()"><a id="get_sslversion_int"></a><b>get_sslversion_int()</b></dt>
<dd>

<p>Returns the integer representation of the SSL version of an established connection.</p>

</dd>
<dt id="get_session_reused()"><a id="get_session_reused"></a><b>get_session_reused()</b></dt>
<dd>

<p>This returns true if the session got reused and false otherwise. Note that with a reused session no certificates are send within the handshake and no ciphers are offered and thus functions which rely on this might not work.</p>

</dd>
<dt id="dump_peer_certificate()"><a id="dump_peer_certificate"></a><b>dump_peer_certificate()</b></dt>
<dd>

<p>Returns a parsable string with select fields from the peer SSL certificate. This method directly returns the result of the dump_peer_certificate() method of Net::SSLeay.</p>

</dd>
<dt id="peer_certificate($field;[$refresh])"><a id="peer_certificate"></a><a id="peer_certificate-field-refresh"></a><b>peer_certificate($field;[$refresh])</b></dt>
<dd>

<p>If a peer certificate exists, this function can retrieve values from it. If no field is given the internal representation of certificate from Net::SSLeay is returned. If refresh is true it will not used a cached version, but check again in case the certificate of the connection has changed due to renegotiation.</p>

<p>The following fields can be queried:</p>

<dl>

<dt id="authority-(alias-issuer)"><a id="authority"></a><a id="authority--alias-issuer"></a>authority (alias issuer)</dt>
<dd>

<p>The certificate authority which signed the certificate.</p>

</dd>
<dt id="owner-(alias-subject)"><a id="owner"></a><a id="owner--alias-subject"></a>owner (alias subject)</dt>
<dd>

<p>The owner of the certificate.</p>

</dd>
<dt id="commonName-(alias-cn)-only-for-Net::SSLeay-version-&gt;=1.30"><a id="commonName"></a><a id="commonName--alias-cn--only-for-Net::SSLeay-version--1.30"></a>commonName (alias cn) - only for Net::SSLeay version &gt;=1.30</dt>
<dd>

<p>The common name, usually the server name for SSL certificates.</p>

</dd>
<dt id="subjectAltNames-only-for-Net::SSLeay-version-&gt;=1.33"><a id="subjectAltNames"></a><a id="subjectAltNames-only-for-Net::SSLeay-version--1.33"></a>subjectAltNames - only for Net::SSLeay version &gt;=1.33</dt>
<dd>

<p>Alternative names for the subject, usually different names for the same server, like example.org, example.com, *.example.com.</p>

<p>It returns a list of (typ,value) with typ GEN_DNS, GEN_IPADD etc (these constants are exported from IO::Socket::SSL). See Net::SSLeay::X509_get_subjectAltNames.</p>

</dd>
</dl>

</dd>
<dt id="sock_certificate($field)"><a id="sock_certificate"></a><a id="sock_certificate-field"></a><b>sock_certificate($field)</b></dt>
<dd>

<p>This is similar to <code>peer_certificate</code> but will return the sites own certificate. The same arguments for <b>$field</b> can be used. If no <b>$field</b> is given the certificate handle from the underlying OpenSSL will be returned. This handle will only be valid as long as the SSL connection exists and if used afterwards it might result in strange crashes of the application.</p>

</dd>
<dt id="peer_certificates"><b>peer_certificates</b></dt>
<dd>

<p>This returns all the certificates send by the peer, e.g. first the peers own certificate and then the rest of the chain. You might use <b>CERT_asHash</b> from <a href="https://metacpan.org/pod/IO::Socket::SSL::Utils">IO::Socket::SSL::Utils</a> to inspect each of the certificates.</p>

<p>This function depends on a version of Net::SSLeay &gt;= 1.58 .</p>

</dd>
<dt id="get_servername"><b>get_servername</b></dt>
<dd>

<p>This gives the name requested by the client if Server Name Indication (SNI) was used.</p>

</dd>
<dt id="verify_hostname($hostname,$scheme,$publicsuffix)"><a id="verify_hostname"></a><a id="verify_hostname-hostname-scheme-publicsuffix"></a><b>verify_hostname($hostname,$scheme,$publicsuffix)</b></dt>
<dd>

<p>This verifies the given hostname against the peer certificate using the given scheme. Hostname is usually what you specify within the PeerAddr. See the <code>SSL_verifycn_publicsuffix</code> parameter for an explanation of suffix checking and for the possible values.</p>

<p>Verification of hostname against a certificate is different between various applications and RFCs. Some scheme allow wildcards for hostnames, some only in subjectAltNames, and even their different wildcard schemes are possible. RFC 6125 provides a good overview.</p>

<p>To ease the verification the following schemes are predefined (both protocol name and rfcXXXX name can be used):</p>

<dl>

<dt id="rfc2818,-xmpp-(rfc3920),-ftp-(rfc4217)"><a id="rfc2818"></a><a id="rfc2818--xmpp--rfc3920--ftp--rfc4217"></a>rfc2818, xmpp (rfc3920), ftp (rfc4217)</dt>
<dd>

<p>Extended wildcards in subjectAltNames and common name are possible, e.g. *.example.org or even www*.example.org. The common name will be only checked if no DNS names are given in subjectAltNames.</p>

</dd>
<dt id="http-(alias-www)"><a id="http"></a><a id="http--alias-www"></a>http (alias www)</dt>
<dd>

<p>While name checking is defined in rfc2818 the current browsers usually accept also an IP address (w/o wildcards) within the common name as long as no subjectAltNames are defined. Thus this is rfc2818 extended with this feature.</p>

</dd>
<dt id="smtp-(rfc2595),-imap,-pop3,-acap-(rfc4642),-netconf-(rfc5538),-syslog-(rfc5425),-snmp-(rfc5953)"><a id="smtp"></a><a id="smtp--rfc2595--imap--pop3--acap--rfc4642--netconf--rfc5538--syslog--rfc5425--snmp--rfc5953"></a>smtp (rfc2595), imap, pop3, acap (rfc4642), netconf (rfc5538), syslog (rfc5425), snmp (rfc5953)</dt>
<dd>

<p>Simple wildcards in subjectAltNames are possible, e.g. *.example.org matches www.example.org but not lala.www.example.org. If nothing from subjectAltNames match it checks against the common name, where wildcards are also allowed to match the full leftmost label.</p>

</dd>
<dt id="ldap-(rfc4513)"><a id="ldap"></a><a id="ldap--rfc4513"></a>ldap (rfc4513)</dt>
<dd>

<p>Simple wildcards are allowed in subjectAltNames, but not in common name. Common name will be checked even if subjectAltNames exist.</p>

</dd>
<dt id="sip-(rfc5922)"><a id="sip"></a><a id="sip--rfc5922"></a>sip (rfc5922)</dt>
<dd>

<p>No wildcards are allowed and common name is checked even if subjectAltNames exist.</p>

</dd>
<dt id="gist-(rfc5971)"><a id="gist"></a><a id="gist--rfc5971"></a>gist (rfc5971)</dt>
<dd>

<p>Simple wildcards are allowed in subjectAltNames and common name, but common name will only be checked if there are no DNS names in subjectAltNames.</p>

</dd>
<dt id="default">default</dt>
<dd>

<p>This is a superset of all the rules and is automatically used if no scheme is given but a hostname (instead of IP) is known. Extended wildcards are allowed in subjectAltNames and common name and common name is checked always.</p>

</dd>
<dt id="none">none</dt>
<dd>

<p>No verification will be done. Actually is does not make any sense to call verify_hostname in this case.</p>

</dd>
</dl>

<p>The scheme can be given either by specifying the name for one of the above predefined schemes, or by using a hash which can have the following keys and values:</p>

<dl>

<dt id="check_cn:-0|&#39;always&#39;|&#39;when_only&#39;"><a id="check_cn"></a><a id="check_cn:-0-always-when_only"></a>check_cn: 0|&#39;always&#39;|&#39;when_only&#39;</dt>
<dd>

<p>Determines if the common name gets checked. If &#39;always&#39; it will always be checked (like in ldap), if &#39;when_only&#39; it will only be checked if no names are given in subjectAltNames (like in http), for any other values the common name will not be checked.</p>

</dd>
<dt id="wildcards_in_alt:-0|&#39;full_label&#39;|&#39;anywhere&#39;"><a id="wildcards_in_alt"></a><a id="wildcards_in_alt:-0-full_label-anywhere"></a>wildcards_in_alt: 0|&#39;full_label&#39;|&#39;anywhere&#39;</dt>
<dd>

<p>Determines if and where wildcards in subjectAltNames are possible. If &#39;full_label&#39; only cases like *.example.org will be possible (like in ldap), for &#39;anywhere&#39; www*.example.org is possible too (like http), dangerous things like but www.*.org or even &#39;*&#39; will not be allowed. For compatibility with older versions &#39;leftmost&#39; can be given instead of &#39;full_label&#39;.</p>

</dd>
<dt id="wildcards_in_cn:-0|&#39;full_label&#39;|&#39;anywhere&#39;"><a id="wildcards_in_cn"></a><a id="wildcards_in_cn:-0-full_label-anywhere"></a>wildcards_in_cn: 0|&#39;full_label&#39;|&#39;anywhere&#39;</dt>
<dd>

<p>Similar to wildcards_in_alt, but checks the common name. There is no predefined scheme which allows wildcards in common names.</p>

</dd>
<dt id="ip_in_cn:-0|1|4|6"><a id="ip_in_cn"></a><a id="ip_in_cn:-0-1-4-6"></a>ip_in_cn: 0|1|4|6</dt>
<dd>

<p>Determines if an IP address is allowed in the common name (no wildcards are allowed). If set to 4 or 6 it only allows IPv4 or IPv6 addresses, any other true value allows both.</p>

</dd>
<dt id="callback:-\&amp;coderef"><a id="callback"></a><a id="callback:--coderef"></a>callback: \&amp;coderef</dt>
<dd>

<p>If you give a subroutine for verification it will be called with the arguments ($hostname,$commonName,@subjectAltNames), where hostname is the name given for verification, commonName is the result from peer_certificate(&#39;cn&#39;) and subjectAltNames is the result from peer_certificate(&#39;subjectAltNames&#39;).</p>

<p>All other arguments for the verification scheme will be ignored in this case.</p>

</dd>
</dl>

</dd>
<dt id="next_proto_negotiated()"><a id="next_proto_negotiated"></a><b>next_proto_negotiated()</b></dt>
<dd>

<p>This method returns the name of negotiated protocol - e.g. &#39;http/1.1&#39;. It works for both client and server side of SSL connection.</p>

<p>NPN support is available with Net::SSLeay 1.46+ and openssl-1.0.1+. To check support you might call <code>IO::Socket::SSL-&gt;can_npn()</code>.</p>

</dd>
<dt id="alpn_selected()"><a id="alpn_selected"></a><b>alpn_selected()</b></dt>
<dd>

<p>Returns the protocol negotiated via ALPN as a string, e.g. &#39;http/1.1&#39;, &#39;http/2.0&#39; or &#39;spdy/3.1&#39;.</p>

<p>ALPN support is available with Net::SSLeay 1.56+ and openssl-1.0.2+. To check support, use <code>IO::Socket::SSL-&gt;can_alpn()</code>.</p>

</dd>
<dt id="errstr()"><a id="errstr"></a><b>errstr()</b></dt>
<dd>

<p>Returns the last error (in string form) that occurred. If you do not have a real object to perform this method on, call IO::Socket::SSL::errstr() instead.</p>

<p>For read and write errors on non-blocking sockets, this method may include the string <code>SSL wants a read first!</code> or <code>SSL wants a write first!</code> meaning that the other side is expecting to read from or write to the socket and wants to be satisfied before you get to do anything. But with version 0.98 you are better comparing the global exported variable $SSL_ERROR against the exported symbols SSL_WANT_READ and SSL_WANT_WRITE.</p>

</dd>
<dt id="opened()"><a id="opened"></a><b>opened()</b></dt>
<dd>

<p>This returns false if the socket could not be opened, 1 if the socket could be opened and the SSL handshake was successful done and -1 if the underlying IO::Handle is open, but the SSL handshake failed.</p>

</dd>
<dt id="IO::Socket::SSL-&gt;start_SSL($socket,-...-)"><a id="IO"></a><a id="IO::Socket::SSL--start_SSL-socket"></a><b>IO::Socket::SSL-&gt;start_SSL($socket, ... )</b></dt>
<dd>

<p>This will convert a glob reference or a socket that you provide to an IO::Socket::SSL object. You may also pass parameters to specify context or connection options as with a call to new(). If you are using this function on an accept()ed socket, you must set the parameter &quot;SSL_server&quot; to 1, i.e. IO::Socket::SSL-&gt;start_SSL($socket, SSL_server =&gt; 1). If you have a class that inherits from IO::Socket::SSL and you want the $socket to be blessed into your own class instead, use MyClass-&gt;start_SSL($socket) to achieve the desired effect.</p>

<p>Note that if start_SSL() fails in SSL negotiation, $socket will remain blessed in its original class. For non-blocking sockets you better just upgrade the socket to IO::Socket::SSL and call accept_SSL or connect_SSL and the upgraded object. To just upgrade the socket set <b>SSL_startHandshake</b> explicitly to 0. If you call start_SSL w/o this parameter it will revert to blocking behavior for accept_SSL and connect_SSL.</p>

<p>If given the parameter &quot;Timeout&quot; it will stop if after the timeout no SSL connection was established. This parameter is only used for blocking sockets, if it is not given the default Timeout from the underlying IO::Socket will be used.</p>

</dd>
<dt id="stop_SSL(...)"><a id="stop_SSL"></a><b>stop_SSL(...)</b></dt>
<dd>

<p>This is the opposite of start_SSL(), connect_SSL() and accept_SSL(), e.g. it will shutdown the SSL connection and return to the class before start_SSL(). It gets the same arguments as close(), in fact close() calls stop_SSL() (but without downgrading the class).</p>

<p>Will return true if it succeeded and undef if failed. This might be the case for non-blocking sockets. In this case $! is set to EWOULDBLOCK and the ssl error to SSL_WANT_READ or SSL_WANT_WRITE. In this case the call should be retried again with the same arguments once the socket is ready.</p>

<p>For calling from <code>stop_SSL</code> <code>SSL_fast_shutdown</code> default to false, e.g. it waits for the close_notify of the peer. This is necessary in case you want to downgrade the socket and continue to use it as a plain socket.</p>

<p>After stop_SSL the socket can again be used to exchange plain data.</p>

</dd>
<dt id="connect_SSL,-accept_SSL"><a id="connect_SSL"></a><a id="connect_SSL--accept_SSL"></a><b>connect_SSL</b>, <b>accept_SSL</b></dt>
<dd>

<p>These functions should be used to do the relevant handshake, if the socket got created with <code>new</code> or upgraded with <code>start_SSL</code> and <code>SSL_startHandshake</code> was set to false. They will return undef until the handshake succeeded or an error got thrown. As long as the function returns undef and $! is set to EWOULDBLOCK one could retry the call after the socket got readable (SSL_WANT_READ) or writeable (SSL_WANT_WRITE).</p>

</dd>
<dt id="set_msg_callback"><b>set_msg_callback</b></dt>
<dd>

<p>This will add/remove a user defined callback for each message, internally using openssl SSL_set_msg_callback API. To make sure that the callback is active before the handshake starts, combine it with <code>SSL_startHandshake =&gt; 0</code> in the preceding setup of the SSL object. To remove callback explicitly call it with an empty callback function.</p>

<p>Example:</p>

<pre><code>    $sock = IO::Socket::SSL-&gt;new( .... , SSL_startHandshake =&gt; 0);
    # set callback
    $sock-&gt;set_msg_callback(\&amp;cb, $cbarg1, $cbarg2);
    $sock-&gt;connect_SSL();

    sub cb {
        my ($sock,
            # see SSL_set_msg_callback for the following args
            $direction, $ssl_ver, $content_type, $buf, $len, $ssl,
            $cbarg1, $cbarg2)
            = @_;
        ...
        if (no_longer_need_cb) {
            # disable callback
            $sock-&gt;set_msg_callback(undef);
        }
    }</code></pre>

</dd>
<dt id="ocsp_resolver"><b>ocsp_resolver</b></dt>
<dd>

<p>This will create an OCSP resolver object, which can be used to create OCSP requests for the certificates of the SSL connection. Which certificates are verified depends on the setting of <code>SSL_ocsp_mode</code>: by default only the leaf certificate will be checked, but with SSL_OCSP_FULL_CHAIN all chain certificates will be checked.</p>

<p>Because to create an OCSP request the certificate and its issuer certificate need to be known it is not possible to check certificates when the trust chain is incomplete or if the certificate is self-signed.</p>

<p>The OCSP resolver gets created by calling <code>$ssl-&gt;ocsp_resolver</code> and provides the following methods:</p>

<dl>

<dt id="hard_error">hard_error</dt>
<dd>

<p>This returns the hard error when checking the OCSP response. Hard errors are certificate revocations. With the <code>SSL_ocsp_mode</code> of SSL_OCSP_FAIL_HARD any soft error (e.g. failures to get signed information about the certificates) will be considered a hard error too.</p>

<p>The OCSP resolving will stop on the first hard error.</p>

<p>The method will return undef as long as no hard errors occurred and still requests to be resolved. If all requests got resolved and no hard errors occurred the method will return <code>&#39;&#39;</code>.</p>

</dd>
<dt id="soft_error">soft_error</dt>
<dd>

<p>This returns the soft error(s) which occurred when asking the OCSP responders.</p>

</dd>
<dt id="requests">requests</dt>
<dd>

<p>This will return a hash consisting of <code>(url,request)</code>-tuples, e.g. which contain the OCSP request string and the URL where it should be sent too. The usual way to send such a request is as HTTP POST request with a content-type of <code>application/ocsp-request</code> or as a GET request with the base64 and url-encoded request is added to the path of the URL.</p>

<p>After you&#39;ve handled all these requests and added the response with <code>add_response</code> you should better call this method again to make sure, that no more requests are outstanding. IO::Socket::SSL will combine multiple OCSP requests for the same server inside a single request, but some server don&#39;t give a response to all these requests, so that one has to ask again with the remaining requests.</p>

</dd>
<dt id="add_response($uri,$response)"><a id="add_response"></a><a id="add_response-uri-response"></a>add_response($uri,$response)</dt>
<dd>

<p>This method takes the HTTP body of the response which got received when sending the OCSP request to <code>$uri</code>. If no response was received or an error occurred one should either retry or consider <code>$response</code> as empty which will trigger a soft error.</p>

<p>The method returns the current value of <code>hard_error</code>, e.g. a defined value when no more requests need to be done.</p>

</dd>
<dt id="resolve_blocking(%args)"><a id="resolve_blocking"></a><a id="resolve_blocking-args"></a>resolve_blocking(%args)</dt>
<dd>

<p>This combines <code>requests</code> and <code>add_response</code> which <a href="https://metacpan.org/pod/HTTP::Tiny">HTTP::Tiny</a> to do all necessary requests in a blocking way. <code>%args</code> will be given to <a href="https://metacpan.org/pod/HTTP::Tiny">HTTP::Tiny</a> so that you can put proxy settings etc here. <a href="https://metacpan.org/pod/HTTP::Tiny">HTTP::Tiny</a> will be called with <code>verify_SSL</code> of false, because the OCSP responses have their own signatures so no extra SSL verification is needed.</p>

<p>If you don&#39;t want to use blocking requests you need to roll your own user agent with <code>requests</code> and <code>add_response</code>.</p>

</dd>
</dl>

</dd>
<dt id="IO::Socket::SSL-&gt;new_from_fd($fd,-[mode],-%sslargs)"><a id="IO1"></a><a id="IO::Socket::SSL--new_from_fd-fd---mode---sslargs"></a><b>IO::Socket::SSL-&gt;new_from_fd($fd, [mode], %sslargs)</b></dt>
<dd>

<p>This will convert a socket identified via a file descriptor into an SSL socket. Note that the argument list does not include a &quot;MODE&quot; argument; if you supply one, it will be thoughtfully ignored (for compatibility with IO::Socket::INET). Instead, a mode of &#39;+&lt;&#39; is assumed, and the file descriptor passed must be able to handle such I/O because the initial SSL handshake requires bidirectional communication.</p>

<p>Internally the given $fd will be upgraded to a socket object using the <code>new_from_fd</code> method of the super class (<a href="https://metacpan.org/pod/IO::Socket::INET">IO::Socket::INET</a> or similar) and then <code>start_SSL</code> will be called using the given <code>%sslargs</code>. If <code>$fd</code> is already an IO::Socket object you should better call <code>start_SSL</code> directly.</p>

</dd>
<dt id="IO::Socket::SSL::default_ca([-path|dir|-SSL_ca_file-=-...,-SSL_ca_path-=&gt;-...-])&gt;"><a id="IO2"></a><a id="IO::Socket::SSL::default_ca--path-dir--SSL_ca_file---...--SSL_ca_path"></a><b>IO::Socket::SSL::default_ca([ path|dir| SSL_ca_file =</b> ..., SSL_ca_path =&gt; ... ])&gt;</dt>
<dd>

<p>Determines or sets the default CA path. If existing path or dir or a hash is given it will set the default CA path to this value and never try to detect it automatically. If <code>undef</code> is given it will forget any stored defaults and continue with detection of system defaults. If no arguments are given it will start detection of system defaults, unless it has already stored user-set or previously detected values.</p>

<p>The detection of system defaults works similar to OpenSSL, e.g. it will check the directory specified in environment variable SSL_CERT_DIR or the path OPENSSLDIR/certs (SSLCERTS: on VMS) and the file specified in environment variable SSL_CERT_FILE or the path OPENSSLDIR/cert.pem (SSLCERTS:cert.pem on VMS). Contrary to OpenSSL it will check if the SSL_ca_path contains PEM files with the hash as file name and if the SSL_ca_file looks like PEM. If no usable system default can be found it will try to load and use <a href="./Mozilla::CA.html">Mozilla::CA</a> and if not available give up detection. The result of the detection will be saved to speed up future calls.</p>

<p>The function returns the saved default CA as hash with SSL_ca_file and SSL_ca_path.</p>

</dd>
<dt id="IO::Socket::SSL::set_default_context(...)"><a id="IO3"></a><a id="IO::Socket::SSL::set_default_context"></a><b>IO::Socket::SSL::set_default_context(...)</b></dt>
<dd>

<p>You may use this to make IO::Socket::SSL automatically re-use a given context (unless specifically overridden in a call to new()). It accepts one argument, which should be either an IO::Socket::SSL object or an IO::Socket::SSL::SSL_Context object. See the SSL_reuse_ctx option of new() for more details. Note that this sets the default context globally, so use with caution (esp. in mod_perl scripts).</p>

</dd>
<dt id="IO::Socket::SSL::set_default_session_cache(...)"><a id="IO4"></a><a id="IO::Socket::SSL::set_default_session_cache"></a><b>IO::Socket::SSL::set_default_session_cache(...)</b></dt>
<dd>

<p>You may use this to make IO::Socket::SSL automatically re-use a given session cache (unless specifically overridden in a call to new()). It accepts one argument, which should be an IO::Socket::SSL::Session_Cache object or similar (e.g. something which implements get_session, add_session and del_session like IO::Socket::SSL::Session_Cache does). See the SSL_session_cache option of new() for more details. Note that this sets the default cache globally, so use with caution.</p>

</dd>
<dt id="IO::Socket::SSL::set_defaults(%args)"><a id="IO5"></a><a id="IO::Socket::SSL::set_defaults-args"></a><b>IO::Socket::SSL::set_defaults(%args)</b></dt>
<dd>

<p>With this function one can set defaults for all SSL_* parameter used for creation of the context, like the SSL_verify* parameter. Any SSL_* parameter can be given or the following short versions:</p>

<dl>

<dt id="mode-SSL_verify_mode"><a id="mode"></a>mode - SSL_verify_mode</dt>
<dd>

</dd>
<dt id="callback-SSL_verify_callback"><a id="callback1"></a>callback - SSL_verify_callback</dt>
<dd>

</dd>
<dt id="scheme-SSL_verifycn_scheme"><a id="scheme"></a>scheme - SSL_verifycn_scheme</dt>
<dd>

</dd>
<dt id="name-SSL_verifycn_name"><a id="name"></a>name - SSL_verifycn_name</dt>
<dd>

</dd>
</dl>

</dd>
<dt id="IO::Socket::SSL::set_client_defaults(%args)"><a id="IO6"></a><a id="IO::Socket::SSL::set_client_defaults-args"></a><b>IO::Socket::SSL::set_client_defaults(%args)</b></dt>
<dd>

<p>Similar to <code>set_defaults</code>, but only sets the defaults for client mode.</p>

</dd>
<dt id="IO::Socket::SSL::set_server_defaults(%args)"><a id="IO7"></a><a id="IO::Socket::SSL::set_server_defaults-args"></a><b>IO::Socket::SSL::set_server_defaults(%args)</b></dt>
<dd>

<p>Similar to <code>set_defaults</code>, but only sets the defaults for server mode.</p>

</dd>
<dt id="IO::Socket::SSL::set_args_filter_hack(\&amp;code|&#39;use_defaults&#39;)"><a id="IO8"></a><a id="IO::Socket::SSL::set_args_filter_hack-code-use_defaults"></a><b>IO::Socket::SSL::set_args_filter_hack(\&amp;code|&#39;use_defaults&#39;)</b></dt>
<dd>

<p>Sometimes one has to use code which uses unwanted or invalid arguments for SSL, typically disabling SSL verification or setting wrong ciphers or SSL versions. With this hack it is possible to override these settings and restore sanity. Example:</p>

<pre><code>    IO::Socket::SSL::set_args_filter_hack( sub {
        my ($is_server,$args) = @_;
        if ( ! $is_server ) {
            # client settings - enable verification with default CA
            # and fallback hostname verification etc
            delete @{$args}{qw(
                SSL_verify_mode
                SSL_ca_file
                SSL_ca_path
                SSL_verifycn_scheme
                SSL_version
            )};
            # and add some fingerprints for known certs which are signed by
            # unknown CAs or are self-signed
            $args-&gt;{SSL_fingerprint} = ...
        }
    });</code></pre>

<p>With the short setting <code>set_args_filter_hack(&#39;use_defaults&#39;)</code> it will prefer the default settings in all cases. These default settings can be modified with <code>set_defaults</code>, <code>set_client_defaults</code> and <code>set_server_defaults</code>.</p>

</dd>
</dl>

<p>The following methods are unsupported (not to mention futile!) and IO::Socket::SSL will emit a large CROAK() if you are silly enough to use them:</p>

<dl>

<dt id="truncate">truncate</dt>
<dd>

</dd>
<dt id="stat">stat</dt>
<dd>

</dd>
<dt id="ungetc">ungetc</dt>
<dd>

</dd>
<dt id="setbuf">setbuf</dt>
<dd>

</dd>
<dt id="setvbuf">setvbuf</dt>
<dd>

</dd>
<dt id="fdopen">fdopen</dt>
<dd>

</dd>
<dt id="send/recv"><a id="send"></a><a id="send-recv"></a>send/recv</dt>
<dd>

<p>Note that send() and recv() cannot be reliably trapped by a tied filehandle (such as that used by IO::Socket::SSL) and so may send unencrypted data over the socket. Object-oriented calls to these functions will fail, telling you to use the print/printf/syswrite and read/sysread families instead.</p>

</dd>
</dl>

<h1 id="DEPRECATIONS">DEPRECATIONS</h1>

<p>The following functions are deprecated and are only retained for compatibility:</p>

<dl>

<dt id="context_init()"><a id="context_init"></a>context_init()</dt>
<dd>

<p>use the SSL_reuse_ctx option if you want to re-use a context</p>

</dd>
<dt id="socketToSSL()-and-socket_to_SSL()"><a id="socketToSSL"></a><a id="socketToSSL--and-socket_to_SSL"></a>socketToSSL() and socket_to_SSL()</dt>
<dd>

<p>use IO::Socket::SSL-&gt;start_SSL() instead</p>

</dd>
<dt id="kill_socket()"><a id="kill_socket"></a>kill_socket()</dt>
<dd>

<p>use close() instead</p>

</dd>
<dt id="get_peer_certificate()"><a id="get_peer_certificate"></a>get_peer_certificate()</dt>
<dd>

<p>use the peer_certificate() function instead. Used to return X509_Certificate with methods subject_name and issuer_name. Now simply returns $self which has these methods (although deprecated).</p>

</dd>
<dt id="issuer_name()"><a id="issuer_name"></a>issuer_name()</dt>
<dd>

<p>use peer_certificate( &#39;issuer&#39; ) instead</p>

</dd>
<dt id="subject_name()"><a id="subject_name"></a>subject_name()</dt>
<dd>

<p>use peer_certificate( &#39;subject&#39; ) instead</p>

</dd>
</dl>

<h1 id="EXAMPLES">EXAMPLES</h1>

<p>See the &#39;example&#39; directory, the tests in &#39;t&#39; and also the tools in &#39;util&#39;.</p>

<h1 id="BUGS">BUGS</h1>

<p>If you use IO::Socket::SSL together with threads you should load it (e.g. use or require) inside the main thread before creating any other threads which use it. This way it is much faster because it will be initialized only once. Also there are reports that it might crash the other way.</p>

<p>Creating an IO::Socket::SSL object in one thread and closing it in another thread will not work.</p>

<p>IO::Socket::SSL does not work together with Storable::fd_retrieve/fd_store. See BUGS file for more information and how to work around the problem.</p>

<p>Non-blocking and timeouts (which are based on non-blocking) are not supported on Win32, because the underlying IO::Socket::INET does not support non-blocking on this platform.</p>

<p>If you have a server and it looks like you have a memory leak you might check the size of your session cache. Default for Net::SSLeay seems to be 20480, see the example for SSL_create_ctx_callback for how to limit it.</p>

<p>TLS 1.3 support regarding session reuse is incomplete.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p>IO::Socket::INET, IO::Socket::INET6, IO::Socket::IP, Net::SSLeay.</p>

<h1 id="THANKS">THANKS</h1>

<p>Many thanks to all who added patches or reported bugs or helped IO::Socket::SSL another way. Please keep reporting bugs and help with patches, even if they just fix the documentation.</p>

<p>Special thanks to the team of Net::SSLeay for the good cooperation.</p>

<h1 id="AUTHORS">AUTHORS</h1>

<p>Steffen Ullrich, &lt;sullr at cpan.org&gt; is the current maintainer.</p>

<p>Peter Behroozi, &lt;behrooz at fas.harvard.edu&gt; (Note the lack of an &quot;i&quot; at the end of &quot;behrooz&quot;)</p>

<p>Marko Asplund, &lt;marko.asplund at kronodoc.fi&gt;, was the original author of IO::Socket::SSL.</p>

<p>Patches incorporated from various people, see file Changes.</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>The original versions of this module are Copyright (C) 1999-2002 Marko Asplund.</p>

<p>The rewrite of this module is Copyright (C) 2002-2005 Peter Behroozi.</p>

<p>Versions 0.98 and newer are Copyright (C) 2006-2014 Steffen Ullrich.</p>

<p>This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install IO::Socket::SSL, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm IO::Socket::SSL</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install IO::Socket::SSL</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./IO::Socket::SSL.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
